Content-type: text/html Man page of ddi_get_pid

ddi_get_pid

Section: Kernel Functions for Drivers (9F)
Updated: 18 Feb 1998
Index Return to Main Contents
 

NAME

ddi_get_pid - returns the process ID  

SYNOPSIS

#include <sys/types.h>
#include <sys/ddi.h>
#include <sys/sunddi.h>

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 to perform a certain operation. It can also be used to determine whether a device context belongs to the current process.  

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 Guide 


 

Index

NAME
SYNOPSIS
INTERFACE LEVEL
DESCRIPTION
RETURN VALUES
CONTEXT
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 02:39:46 GMT, October 02, 2010