Merge commit '9276b3991ba20d5a5660887ba81b0bc7bed25a0c'
[unleashed.git] / share / man / man9f / nodev.9f
blob0b6d4e85c321e06102d86702f48cc6c9e3d3753f
1 '\" te
2 .\" Copyright (c) 1993, Sun Microsystems, Inc.,
3 .\" All Rights Reserved
4 .\" 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.
5 .\" 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.
6 .\" 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]
7 .TH NODEV 9F "Jan 27, 1993"
8 .SH NAME
9 nodev \- error return function
10 .SH SYNOPSIS
11 .LP
12 .nf
13 #include <sys/conf.h>
14 #include <sys/ddi.h>
18 \fBint\fR \fBnodev\fR(\|);
19 .fi
21 .SH INTERFACE LEVEL
22 .sp
23 .LP
24 Architecture independent level 1 (DDI/DKI).
25 .SH DESCRIPTION
26 .sp
27 .LP
28 \fBnodev()\fR returns  \fBENXIO\fR. It is intended to be used in the
29 \fBcb_ops\fR(9S) data structure of a device driver for device entry points
30 which are not supported by the driver. That is, it is an error to attempt to
31 call such an entry point.
32 .SH RETURN VALUES
33 .sp
34 .LP
35 \fBnodev()\fR returns \fBENXIO\fR.
36 .SH CONTEXT
37 .sp
38 .LP
39 \fBnodev()\fR can be only called from user context.
40 .SH SEE ALSO
41 .sp
42 .LP
43 \fBnulldev\fR(9F), \fBcb_ops\fR(9S)
44 .sp
45 .LP
46 \fIWriting Device Drivers\fR