summaryrefslogtreecommitdiff
path: root/sys/kern/kern_proc.c
AgeCommit message (Collapse)Author
2005-07-04oops, kernel free needs two args. thanks pedroTed Unangst
2005-07-03malloc(M_WAITOK) implies sleeping, so we have to double check thatTed Unangst
somebody else didn't beat us in uid_find().
2005-03-10split out uidinfo from kern_proc.c private, use it to store lock count,Ted Unangst
restrict lock count per uid to a global limit, add sysctl to adjust limit. this prevents a user from creating too many locks. problem noticed by devon o'dell. ok deraadt miod pedro
2004-12-26Use list and queue macros where applicable to make the code easier to read;Miod Vallat
no change in compiler assembly output.
2004-11-18handle SONPROC; ok aaron, deraadt, krwMarkus Friedl
2004-10-04cacheing -> cachingPedro Martelletto
2004-07-25move db_show_all_procs to kern_proc.c, proc_printit goes in DDB too.Ted Unangst
shuffle functions around so that scheduler is all together. no real functional changes. ok art@ testing miod@
2004-07-22SIMPLELOCK -> mutex for the lock around deadproc list.Artur Grabowski
Also move the whole deadproc infrastructure to kern_exit, it's only used there. miod@ ok
2004-06-13debranch SMP, have funNiklas Hallqvist
2004-01-29The Sxxx proc state defines start at 1, not 0. Also make the constTodd C. Miller
usage more correct and fix a signed/unsigned format mismatch. Based on a patch from Patrick Latifi. OK deraadt@
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-05-12Quoting Theo: Do not approve diffs when you're hungover.Artur Grabowski
Accessing p_md members from MI code is not legal.
2003-05-12use snprintf. ok mickeyTed Unangst
2003-05-12sho proc [addr] to print some proc's field; art@ okMichael Shalayeff
2002-03-14First round of __P removal in sysTodd C. Miller
2002-01-25poolify pcreds.Artur Grabowski
2002-01-23Allocate rusage, pgrp, ucred and session with pool.Artur Grabowski
2002-01-23Pool deals fairly well with physical memory shortage, but it doesn't dealArtur Grabowski
well (not at all) with shortages of the vm_map where the pages are mapped (usually kmem_map). Try to deal with it: - group all information the backend allocator for a pool in a separate struct. The pool will only have a pointer to that struct. - change the pool_init API to reflect that. - link all pools allocating from the same allocator on a linked list. - Since an allocator is responsible to wait for physical memory it will only fail (waitok) when it runs out of its backing vm_map, carefully drain pools using the same allocator so that va space is freed. (see comments in code for caveats and details). - change pool_reclaim to return if it actually succeeded to free some memory, use that information to make draining easier and more efficient. - get rid of PR_URGENT, noone uses it.
2002-01-16Don't include <sys/map.h> when you don't need what's in it.Miod Vallat
2001-03-23Use pool to allocate processes.Artur Grabowski
2000-06-05Changes to exit handling.Artur Grabowski
cpu_exit no longer frees the vmspace and u-area. This is now handled by a separate kernel thread "reaper". This is to avoid sleeping locks in the critical path of cpu_exit where we're not allowed to sleep. From NetBSD
1999-04-28zap the newhashinit hack.Artur Grabowski
Add an extra flag to hashinit telling if it should wait in malloc. update all calls to hashinit.
1998-03-02Please gcc 2.8Todd T. Fries
1998-02-20Please GCC 2.8 -WallNiklas Hallqvist
1997-11-24fix memory leak; hbriceno@lcs.mit.eduTheo de Raadt
1996-03-03From NetBSD: 960217 mergeNiklas Hallqvist
1995-10-18initial import of NetBSD treeTheo de Raadt