Unix/Linux Go Back    

NetBSD 6.1.5 - man page for curcpu (netbsd section 9)

Linux & Unix Commands - Search Man Pages
Man Page or Keyword Search:   man
Select Man Page Set:       apropos Keyword Search (sections above)

CURPROC(9)			  BSD Kernel Developer's Manual 		       CURPROC(9)

     curproc, curcpu, curlwp -- current process, processor, and LWP

     #include <sys/proc.h>

     struct cpu_info *

     struct proc *

     struct lwp *

     The 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 cur-
		rently 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.

     cpu_number(9), proc_find(9)

BSD					   July 1, 2010 				      BSD
Unix & Linux Commands & Man Pages : ©2000 - 2018 Unix and Linux Forums

All times are GMT -4. The time now is 01:32 AM.