Merge commit '9276b3991ba20d5a5660887ba81b0bc7bed25a0c'
[unleashed.git] / share / man / man9f / ddi_get_cred.9f
blobefbb7a619f082aab5a368075d9ac732e837eaa35
1 '\" te
2 .\"  Copyright (c) 1995, Sun Microsystems, Inc.  All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH DDI_GET_CRED 9F "Apr 11, 1991"
7 .SH NAME
8 ddi_get_cred \- returns a pointer to the credential structure of the caller
9 .SH SYNOPSIS
10 .LP
11 .nf
12 #include <sys/types.h>
13 #include <sys/ddi.h>
14 #include <sys/sunddi.h>
18 \fBcred_t *\fR\fBddi_get_cred\fR(void)
19 .fi
21 .SH INTERFACE LEVEL
22 .sp
23 .LP
24 Solaris DDI specific (Solaris DDI).
25 .SH DESCRIPTION
26 .sp
27 .LP
28 \fBddi_get_cred()\fR returns a pointer to the user credential structure of the
29 caller.
30 .SH RETURN VALUES
31 .sp
32 .LP
33 \fBddi_get_cred()\fR returns a pointer to the caller's credential structure.
34 .SH CONTEXT
35 .sp
36 .LP
37 \fBddi_get_cred()\fR can be called from user context only.
38 .SH SEE ALSO
39 .sp
40 .LP
41 \fIWriting Device Drivers\fR