unixdev.net


Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (NetBSD-2.0)
Page:
Section:
Apropos / Subsearch:
optional field

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

NAME
     curproc, curcpu -- current process and processor

SYNOPSIS
     #include <&lt;sys/proc.h>&gt;

     struct cpu_info *
     curcpu(void);

     struct proc *
     curproc(void);

DESCRIPTION
     curcpu() returns a pointer to a cpu_info structure containing information
     of the CPU that this thread is running on.  curproc() returns a pointer
     to the process currently running on this CPU.

BSD                              May 23, 2002                              BSD