summaryrefslogtreecommitdiff
path: root/sys/kern/kern_resource.c
AgeCommit message (Expand)Author
2024-10-08Move common code to update the proc runtime into tuagg_add_runtime().Claudio Jeker
2024-10-03In rucheck() sum up the tusage from all threads to get the real currentClaudio Jeker
2024-10-01Make it more obvious which ruadd argument is the source and which one isClaudio Jeker
2024-08-20Unlock KERN_MAXFILES.Vitaliy Makkoveev
2024-08-20Unlock KERN_MAXPROC and KERN_MAXTHREAD from `kern_vars'. BothVitaliy Makkoveev
2024-07-09Remove splassert() for now since IPL_STATCLOCK is MD and not all archs have it.Claudio Jeker
2024-07-08Rework per proc and per process time usage accountingClaudio Jeker
2024-06-03Remove the now unsued s argument to SCHED_LOCK and SCHED_UNLOCK.Claudio Jeker
2024-05-22Just grab the SCHED_LOCK() once in donice() before walking the ps_threadsClaudio Jeker
2024-05-20Rework interaction between sleep API and exit1() and start unlocking ps_threadsClaudio Jeker
2024-04-17dogetrusage() must be called with the KERNEL_LOCK held for now.Claudio Jeker
2023-09-13Revert commitid: yfAefyNWibUyjkU2, ESyyH5EKxtrXGkS6 and itscfpFvJLOj8mHB;Claudio Jeker
2023-09-08Change how ps_threads and p_thr_link are locked away from using SCHED_LOCK.Claudio Jeker
2023-08-29Remove p_rtime from struct proc and replace it by passing the timespecClaudio Jeker
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