summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_resource.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ansi/deregister.jsg2005-11-281-49/+25
| | | | 'go for it' deraadt@
* sched work by niklas and art backed out; causes panicsderaadt2005-05-291-2/+2
|
* This patch is mortly art's work and was done *a year* ago. Art wants to thankniklas2005-05-251-2/+2
| | | | | | | | | | | | | | | | everyone for the prompt review and ok of this work ;-) Yeah, that includes me too, or maybe especially me. I am sorry. Change the sched_lock to a mutex. This fixes, among other things, the infamous "telnet localhost &" problem. The real bug in that case was that the sched_lock which is by design a non-recursive lock, was recursively acquired, and not enough releases made us hold the lock in the idle loop, blocking scheduling on the other processors. Some of the other processors would hold the biglock though, which made it impossible for cpu 0 to enter the kernel... A nice deadlock. Let me just say debugging this for days just to realize that it was all fixed in an old diff noone ever ok'd was somewhat of an anti-climax. This diff also changes splsched to be correct for all our architectures.
* Use list and queue macros where applicable to make the code easier to read;miod2004-12-261-4/+3
| | | | no change in compiler assembly output.
* debranch SMP, have funniklas2004-06-131-1/+5
|
* Add id_t type as per POSIX and use it for [gs]etpriority(2).millert2003-12-111-3/+3
| | | | OK henning@ and deraadt@
* POSIX says rlim_t should be unsigned so make it u_quad_t. Also addmillert2003-12-111-4/+1
| | | | | POSIX-mandated RLIM_SAVED_MAX and RLIM_SAVED_CUR defines. On OpenBSD these are identical to RLIM_INFINITY as allowed by POSIX. OK deraadt@
* match syscallargs comments with realityhenning2003-09-011-2/+2
| | | | | from Patrick Latifi <patrick.l@hermes.usherb.ca> ok jason@ tedu@
* change arguments to suser. suser now takes the process, and a flagstedu2003-08-151-3/+3
| | | | | | | | | argument. old cred only calls user suser_ucred. this will allow future work to more flexibly implement the idea of a root process. looks like something i saw in freebsd, but a little different. use of suser_ucred vs suser in file system code should be looked at again, for the moment semantics remain unchanged. review and input from art@ testing and further review miod@
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* Match reality by changing (u_int) -> (int) in comments.nordin2002-10-151-2/+2
|
* Check for negative values. Inspiration from tedu <grendel@zeitbombe.org>.nordin2002-10-021-3/+3
| | | | ok deraadt@ and art@
* Map stack pages without VM_PROT_EXECUTE. Notice that right now thisart2002-07-211-2/+2
| | | | doesn't do anything since no pmap implements exec protection yet.
* Convert plimit allocations to pool.art2002-01-251-11/+16
|
* Make user/system times increase monotonically. ok deraadt@ and millert@nordin2001-12-201-30/+17
|
* Move maxdmap and maxsmap to kern_resource.cart2001-11-101-2/+7
|
* Replace inclusion of <vm/foo.h> with the correct <uvm/bar.h> when necessary.miod2001-11-061-3/+1
| | | | (Look ma, I might have broken the tree)
* remove old vmart2001-06-271-8/+1
|
* Make it a bit more obvious what dosetrlimit does. (shrink).art2001-05-261-30/+25
|
* Add limfree prototype to sys/recosurcevar.h.art2000-05-051-2/+1
|
* Use LIST_ macros instead of internal field names to walk the allproc list.art2000-03-031-3/+3
|
* more stack direction fixes; art@ okmickey1999-11-051-1/+9
|
* vm_offset_t -> {v,p}addr_t ; vm_size_t -> {v,p}size_tart1999-07-151-3/+3
|
* uvm allocation and name changesart1999-02-261-1/+10
|
* Sync with NetBSD. Figure NZERO into priorities and that rlim_curmillert1996-11-241-5/+10
| | | | and rlim_max are >0.
* sec can be a longderaadt1996-07-271-3/+2
|
* unsigned usec can go negative, should be added in as is; netbsd pr#2585; Juergen.Fluk@lrz.tu-muenchen.dederaadt1996-07-021-2/+3
|
* calcru() must calculate using u_quad_t to avoid overflows; netbsd pr#2496, brb@exp.comderaadt1996-06-201-3/+3
|
* From NetBSD: 960217 mergeniklas1996-03-031-7/+7
|
* from netbsd; limfree()deraadt1995-12-141-7/+17
|
* initial import of NetBSD treederaadt1995-10-181-0/+447