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