Query: curproc
OS: netbsd
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
CURPROC(9) BSD Kernel Developer's Manual CURPROC(9)NAMEcurproc, curcpu, curlwp -- current process, processor, and LWPSYNOPSIS#include <sys/proc.h> struct cpu_info * curcpu(void); struct proc * curproc(void); struct lwp * curlwp(void);DESCRIPTIONThe following macros can be used to retrieve the current processor, process, and light-weight process (LWP), respectively: 1. The machine-dependent curcpu() macro returns a pointer to a cpu_info structure containing information of the CPU that this thread is running on. 2. The machine-independent curproc() macro refers to a pointer to the process currently running on this CPU. 3. The curlwp() macro expands to a pointer to lwp structure, containing information about the current LWP. This macro is machine- independent, but machine-dependent <machine/cpu.h> may redefine it.SEE ALSOcpu_number(9), proc_find(9)BSDJuly 1, 2010 BSD
Related Man Pages |
---|
pmc_start_profiling(9) - netbsd |
rump_lwproc(3) - netbsd |
cpu_need_resched(9) - netbsd |
cpu_switchto(9) - netbsd |
pmc(9) - netbsd |
Similar Topics in the Unix Linux Community |
---|
enable FTP access / check version |
Coredumps and swap - was part of Solaris Mem Consumption |