Move all the resource limit handling code into a new file, kern/kern_plimit.c.
authorMatthew Dillon <dillon@dragonflybsd.org>
Tue, 23 May 2006 20:35:12 +0000 (20:35 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Tue, 23 May 2006 20:35:12 +0000 (20:35 +0000)
commitc0b8a06dccf87f8888e7f60ab75cc38df3d74432
tree770f8cb756f84652cdda2e5adce9121523df2b53
parentb5ccee962b195ff7b4706db554bfa8eecf63a9de
Move all the resource limit handling code into a new file, kern/kern_plimit.c.
Add spinlocks for access, and mark getrlimit and setrlimit as being MPSAFE.

Document how LWPs will have to be handled - basically we will have to unshare
the resource structure once we start allowing multiple LWPs per process, but
we can otherwise leave it in the proc structure.
12 files changed:
sys/conf/files
sys/kern/init_main.c
sys/kern/kern_acct.c
sys/kern/kern_exit.c
sys/kern/kern_fork.c
sys/kern/kern_plimit.c [new file with mode: 0644]
sys/kern/kern_resource.c
sys/kern/kern_synch.c
sys/kern/syscalls.master
sys/sys/kern_syscall.h
sys/sys/proc.h
sys/sys/resourcevar.h