Merge commit '9276b3991ba20d5a5660887ba81b0bc7bed25a0c'
[unleashed.git] / share / man / man9f / nulldev.9f
blob9b366e5bd33d6abcf2433b60f4657a224896f710
1 '\" te
2 .\" Copyright (c) 1991, Sun Microsystems, Inc.
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 NULLDEV 9F "Apr 11, 1991"
7 .SH NAME
8 nulldev \- zero return function
9 .SH SYNOPSIS
10 .LP
11 .nf
12 #include <sys/conf.h>
13 #include <sys/ddi.h>
17 \fBint\fR \fBnulldev\fR(\fB);\fR
18 .fi
20 .SH INTERFACE LEVEL
21 .sp
22 .LP
23 Architecture independent level 1 (\fBDDI/DKI\fR).
24 .SH DESCRIPTION
25 .sp
26 .LP
27 \fBnulldev()\fR returns  \fB0\fR. It is intended to be used in the
28 \fBcb_ops\fR(9S) data structure of a device driver for device entry points that
29 do nothing.
30 .SH RETURN VALUES
31 .sp
32 .LP
33 \fBnulldev()\fR returns a \fB0\fR.
34 .SH CONTEXT
35 .sp
36 .LP
37 \fBnulldev()\fR can be called from any context.
38 .SH SEE ALSO
39 .sp
40 .LP
41 \fBnodev\fR(9F), \fBcb_ops\fR(9S)
42 .sp
43 .LP
44 \fIWriting Device Drivers\fR