summaryrefslogtreecommitdiff
path: root/sys/kern/kern_resource.c
AgeCommit message (Expand)Author
2023-02-04kernel: stathz is always non-zero after cpu_initclocks()Scott Soule Cheloha
2022-11-17stack growth from setrlimit was never updated to set UVM_ET_STACK onTheo de Raadt
2022-10-07Add mimmutable(2) system call which locks the permissions (PROT_*) ofTheo de Raadt
2022-05-28oops, wrong value in previous commitTheo de Raadt
2022-05-2864K of locked memory should be enough for anyone (until we hear a goodTheo de Raadt
2022-03-18Use the refcnt API with struct plimit.Visa Hankala
2021-02-08Revert the convertion of per-process thread into a SMR_TAILQ.Martin Pieuchot
2020-12-07Convert the per-process thread list into a SMR_TAILQ.Martin Pieuchot
2020-09-25setpriority(2): don't treat booleans as scalarscheloha
2019-07-15Stop calling resched_proc() after changing the nice(3) value of a process.Martin Pieuchot
2019-07-08Untangle code setting the scheduling priority of a thread.Martin Pieuchot
2019-06-24Guard uvm_map_protect() with kernel lock to prepare dosetrlimit()Visa Hankala
2019-06-21Make resource limit access MP-safe. So far, the copy-on-write sharingVisa Hankala
2019-06-10Avoid changing resource limits in rucheck() by introducing a new stateVisa Hankala
2019-06-02Move initialization of limit0 into a dedicated function. This newVisa Hankala
2019-06-01Revert to using the SCHED_LOCK() to protect time accounting.Martin Pieuchot
2019-05-31Use a per-process mutex to protect time accounting instead of SCHED_LOCK().Martin Pieuchot
2019-05-31Rename struct plimit field p_refcnt to pl_refcnt to avoid confusionVisa Hankala
2019-01-06Fix unsafe use of ptsignal() in mi_switch().Visa Hankala
2018-02-19Remove almost unused `flags' argument of suser().Martin Pieuchot
2016-09-15all pools have their ipl set via pool_setipl, so fold it into pool_init.David Gwynne
2016-08-25pool_setiplDavid Gwynne
2015-12-05remove stale lint annotationsTed Unangst
2015-02-09Stop using USRSTACK as the edge of the stack, but rather use the vmspaceMiod Vallat
2014-12-19start retiring the nointr allocator. specify PR_WAITOK as a flag as aTed Unangst
2014-12-10convert bcopy to memcpy. ok millertTed Unangst
2014-11-16Replace a plethora of historical protection options with justTheo de Raadt
2014-03-30Eliminates struct pcred by moving the real and saved ugids intoPhilip Guenther
2014-01-24exit1() needs to do a final aggregation of the thread's [us]ticksPhilip Guenther
2014-01-21bzero -> memsetTed Unangst
2014-01-20Threads can't be zombies, only processes, so change zombproc to zombprocess,Philip Guenther
2013-10-25Move the declarations for dogetrusage(), itimerround(), and dowait4()Philip Guenther
2013-09-14Eliminate the unused retval argument from dogetrusage()Philip Guenther
2013-09-14Snapshots for all archs have been built, so remove the T32 codePhilip Guenther
2013-08-13Switch time_t, ino_t, clock_t, and struct kevent's ident and dataPhilip Guenther
2013-06-03Convert some internal APIs to use timespecs instead of timevalsPhilip Guenther
2013-04-01Make setrlimit() return EINVAL if rlim_cur > rlim_max, per POSIX.Philip Guenther
2012-04-10Make the KERN_NPROCS and KERN_MAXPROC sysctl()s and the RLIMIT_NPROC rlimitPhilip Guenthe
2012-03-23Make rusage totals, itimers, and profile settings per-process insteadPhilip Guenthe
2012-03-19Add tracing and dumping of "pointer to struct" syscall arguments forPhilip Guenthe
2011-03-07The scheduling 'nice' value is per-process, not per-thread, so move itPhilip Guenthe
2010-07-26Correct the links between threads, processes, pgrps, and sessions,Philip Guenthe
2010-06-29Eliminate struct plimit's PL_SHAREMOD flag: it was for COMPAT_IRIXPhilip Guenthe
2010-01-04Don't decrement the refcnt on a plimits until after we're donePhilip Guenthe
2008-05-22Use LIST_FOREACH() instead of handrolling.Thordur I. Bjornsson
2007-04-12move p_limit and p_cred into struct processTed Unangst
2005-11-28ansi/deregister.Jonathan Gray
2005-05-29sched work by niklas and art backed out; causes panicsTheo de Raadt
2005-05-25This patch is mortly art's work and was done *a year* ago. Art wants to thankNiklas Hallqvist
2004-12-26Use list and queue macros where applicable to make the code easier to read;Miod Vallat