Kernel Functions for Drivers ddi_get_pid(9F)
NAME
ddi_get_pid - returns the process ID
SYNOPSIS
#include
#include
#include
pid_t ddi_get_pid(void);
INTERFACE LEVEL
Solaris DDI specific (Solaris DDI).DESCRIPTION
ddi_get_pid() obtains the process ID of the current process.
This value can be used to allow only a select process toperform a certain operation. It can also be used to deter-
mine whether a device context belongs to the current pro-
cess.RETURN VALUES
ddi_get_pid() returns the process ID.
CONTEXT
This routine can be called from user context only.SEE ALSO
drv_getparm(9F)
Writing Device Drivers STREAMS Programming GuideSunOS 5.11 Last change: 18 Feb 1998 1