summaryrefslogtreecommitdiff
path: root/sys/kern/kern_fork.c
AgeCommit message (Expand)Author
2024-08-21We do not need the PS_LIBCPIN and PS_PIN flag fields anymore, which wereTheo de Raadt
2024-08-20Unlock KERN_MAXPROC and KERN_MAXTHREAD from `kern_vars'. BothVitaliy Makkoveev
2024-08-16Atomically modify `nthreads' and move proc_free() out of KERNEL_LOCK().Martin Pieuchot
2024-08-11Make exit1() wait sysctl(2) `allprocess' loops.Vitaliy Makkoveev
2024-08-06Stop using KERNEL_LOCK to protect the per process kqueue listClaudio Jeker
2024-06-03Remove the now unsued s argument to SCHED_LOCK and SCHED_UNLOCK.Claudio Jeker
2024-05-29Convert SCHED_LOCK from a recursive kernel lock to a mutex.Claudio Jeker
2024-05-20Rework interaction between sleep API and exit1() and start unlocking ps_threadsClaudio Jeker
2024-01-24clockintr: switch from callee- to caller-allocated clockintr structsScott Soule Cheloha
2024-01-19Backout priterator() for walking allprocess list.Alexander Bluhm
2024-01-16The kernel will now read pinsyscall tables out of PT_OPENBSD_SYSCALLS inTheo de Raadt
2024-01-15Introduce priterator(), the `ps_list' iterator. Some of `allprocess'Vitaliy Makkoveev
2023-10-24Normally context switches happen in mi_switch() but there are 3 casesClaudio 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-09-04Protect ps_single, ps_singlecnt and ps_threadcnt by the process mutex.Claudio Jeker
2023-08-14Extend scheduler tracepoints to follow CPU jumping.Martin Pieuchot
2023-07-02PS_CHROOT flag must also be copied when forking. This will blockTheo de Raadt
2023-04-25Rename ps_refcnt to ps_threadcnt in struct process and implementClaudio Jeker
2023-02-10Adjust knote(9) APIVisa Hankala
2023-01-07Add {get,set}thrname(2) for putting thread names in the kernel andPhilip Guenther
2022-11-11timeout(9): remove timeout_set_kclock(), TIMEOUT_INITIALIZER_KCLOCK()Scott Soule Cheloha
2022-11-02Clean up more ancient history: since 2015 the libc stubs forPhilip Guenther
2022-08-14remove unneeded includes in sys/kernJonathan Gray
2022-07-23kernel: remove global "randompid" toggleScott Soule Cheloha
2022-05-13Use the process ps_mtx to protect the process sigacts structure.Claudio Jeker
2022-03-17Use the refcnt API with struct ucred.Visa Hankala
2021-12-10Revert "kbind(2): disable system call if not initialized beforePhilip Guenther
2021-12-05kbind(2): disable system call if not initialized before first __tfork(2)Scott Soule Cheloha
2021-06-19timeout(9): change argument order for timeout_set_kclock()cheloha
2021-03-23Make a child execute fork_return() only if PTRACE_FORK has been specified.Martin Pieuchot
2021-02-15Move single_thread_set() out of KERNEL_LOCK().Martin Pieuchot
2021-02-11"proc: table is full" actually means thread table is full; ok mpi@ sthen@Otto Moerbeek
2021-02-08Revert the convertion of per-process thread into a SMR_TAILQ.Martin Pieuchot
2021-01-17Cache parent's pid as `ps_ppid' and use it instead of `ps_pptr->ps_pid'.mvs
2020-12-07Convert the per-process thread list into a SMR_TAILQ.Martin Pieuchot
2020-12-04Prevent a TOCTOU race in single_thread_set() by extending the scope of the lock.Martin Pieuchot
2020-12-02Revert previous extension of the SCHED_LOCK(), the state isn't passed down.Martin Pieuchot
2020-12-02Prevent a TOCTOU race in single_thread_set() by extending the scope of the lock.Martin Pieuchot
2020-10-25setitimer(2): ITIMER_REAL: use kclock timeoutscheloha
2020-03-20Use atomic operations to update ps_singlecount. This makesClaudio Jeker
2020-03-16Keep track of traced child under a list of orphans while they are beingMartin Pieuchot
2020-02-21Remove sigacts structure sharing. The only process that used sharing wasClaudio Jeker
2020-01-30Split `p_priority' into `p_runpri' and `p_slppri'.Martin Pieuchot
2020-01-21Make __thrsleep(2) and __thrwakeup(2) MP-safeVisa Hankala
2020-01-06Make kqlist part of filedesc and serialize access to it using fdplock.Visa Hankala
2019-12-19Convert infinite sleeps to {m,t}sleep_nsec(9).Martin Pieuchot
2019-11-29Move p_sleeplocks and p_limit into the "zero on create" section of structPhilip Guenther
2019-11-29Move kcov(4)'s p_kd into the "zero on create" section to simplify fork codePhilip Guenther
2019-10-22struct proc: change ps_start from utc time to uptimecheloha