| OpenSS7 SS7 for the Common Man | © Copyright 1997-2007 OpenSS7 Corporation All Rights Reserved. Last modified: Sat, 01 Nov 2008 10:42:05 GMT | ||||||||||||||||
| |||||||||||||||||
| Manpage of DDI_GET_PIDDescription: Manual PageKeywords: ss7 ss7/ip ss7 over ip ss7 mtp ss7 sccp ss7 tcap sigtran mtp sccp tcap openss7 acb56 linux telephony pstn linux telephony linux nebs linux compactpciDDI_GET_PIDSection: OpenSS7 STREAMS Compatibility DDI/DKI (9)Updated: 2008-10-31 Index Return to Main Contents NAMEddi_get_pid - get the process id of the current processSYNOPSIS#define _SUN_SOURCE
ARGUMENTSDESCRIPTIONddi_get_pid() returns the process id of the current process. ddi_get_pid() is a SUNDDI specific function intended to replace drv_getparm(9). Both are a system independent way for a STREAMS driver or module to obtain the process id of he current process. RETURNddi_get_pid() returns the process id of the current process. ERRORSddi_get_pid() always succeeds. CONTEXTddi_get_pid() is valid only when called from user context. When called from another context the process id returned is undefined. MP-STREAMSNOTICESddi_get_pid() is a Solaris®-specific function: _SUN_SOURCE must be defined before including DDI/DKI include files to expose this symbol. OpenSS7 STREAMS Compatibility must also have been compiled with CONFIG_STREAMS_COMPAT_SUN or CONFIG_STREAMS_COMPAT_SUN_MODULE set. ddi_get_pid() simply returns current->pid, which, when optimized will be inline. SEE ALSOdrv_getparm(9), current(9). BUGSddi_get_pid() has no known bugs. COMPATIBILITYddi_get_pid() is provided for source level compatibility with Solaris® for the purpose of porting Solaris® drivers to Linux.
See suncompat(9) for additional compatibility information. CONFORMANCESolaris® SUNDDI documentation[1]. HISTORYddi_get_pid() first appeared in Solaris® 2.5. REFERENCES
TRADEMARKS
Other trademarks are the property of their respective owners. IDENTIFICATION
Copyright©1997-2008OpenSS7 Corp.
All Rights Reserved.
Index
This document was created by man2html, using the manual pages. Time: 08:25:38 GMT, May 26, 2013 | ||||||||||||||||
| OpenSS7 SS7 for the Common Man |
| ||||||||||||||||
| Last modified: Sat, 01 Nov 2008 10:42:05 GMT © Copyright 1997-2007 OpenSS7 Corporation All Rights Reserved. |