#include <sys/vm.h>
sys/vm.h
functioncurrent_proc
struct proc *current_proc(void)
▾
claude-fable-5, 2026-08-23 · not from Apple sources · verified against xnu bsd/kern/bsd_stubs.c
Returns the BSD process of the calling thread. Never returns NULL: if the thread has no associated process (e.g. a pure kernel thread), the kernel process kernproc is returned.