#include <sys/vm.h>

sys/vm.h Kernel.framework

includes: sys/appleapiopts.h, sys/cdefs.h, sys/_types/_caddr_t.h, Kernel/sys/_types/_int32_t.h
1 function

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.