'\" te .\" Copyright (c) 2000, Sun Microsystems, Inc. All Rights Reserved .TH ddi_get_pid 9F "18 Feb 1998" "SunOS 5.11" "Kernel Functions for Drivers" .SH NAME ddi_get_pid \- returns the process \fBID\fR .SH SYNOPSIS .LP .nf #include #include #include \fBpid_t\fR \fBddi_get_pid\fR(\fBvoid\fR); .fi .SH INTERFACE LEVEL .sp .LP Solaris DDI specific (Solaris DDI). .SH DESCRIPTION .sp .LP \fBddi_get_pid()\fR obtains the process \fBID\fR 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. .SH RETURN VALUES .sp .LP \fBddi_get_pid()\fR returns the process \fBID\fR. .SH CONTEXT .sp .LP This routine can be called from user context only. .SH SEE ALSO .sp .LP \fBdrv_getparm\fR(9F) .sp .LP \fIWriting Device Drivers for Oracle Solaris 11.2\fR .sp .LP \fISTREAMS Programming Guide\fR