Merge commit 'b31320a79e2054c6739b5229259dbf98f3afc547' into merges
[unleashed.git] / share / man / man9f / ddi_remove_minor_node.9f
blob4761fae14947cb689d7382187cb859fbfea30a3e
1 '\" te
2 .\" Copyright (c) 1992, 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 DDI_REMOVE_MINOR_NODE 9F "Mar 10, 1992"
7 .SH NAME
8 ddi_remove_minor_node \- remove a minor node for this dev_info
9 .SH SYNOPSIS
10 .LP
11 .nf
12 \fBvoid\fR \fBddi_remove_minor_node\fR(\fBdev_info_t\fR \fI*dip\fR, \fBchar\fR \fI*name\fR);
13 .fi
15 .SH INTERFACE LEVEL
16 .sp
17 .LP
18 Solaris \fBDDI\fR specific (Solaris \fBDDI\fR).
19 .SH PARAMETERS
20 .sp
21 .ne 2
22 .na
23 \fB\fIdip\fR \fR
24 .ad
25 .RS 9n
26 A pointer to the device's \fBdev_info\fR structure.
27 .RE
29 .sp
30 .ne 2
31 .na
32 \fB\fIname\fR \fR
33 .ad
34 .RS 9n
35 The name of this minor device.  If  \fIname\fR is  \fINULL\fR, then remove all
36 minor data structures from this \fBdev_info\fR.
37 .RE
39 .SH DESCRIPTION
40 .sp
41 .LP
42 \fBddi_remove_minor_node()\fR removes a data structure from the linked list of
43 minor data structures that is pointed to by the \fBdev_info\fR structure for
44 this driver.
45 .SH EXAMPLES
46 .LP
47 \fBExample 1 \fRRemoving a minor node
48 .sp
49 .LP
50 This will remove a data structure describing a minor device called \fBdev1\fR
51 which is linked into the \fBdev_info\fR structure pointed to by \fBdip\fR:
53 .sp
54 .in +2
55 .nf
56     ddi_remove_minor_node(dip, "dev1");
57 .fi
58 .in -2
60 .SH SEE ALSO
61 .sp
62 .LP
63 \fBattach\fR(9E), \fBdetach\fR(9E), \fBddi_create_minor_node\fR(9F)
64 .sp
65 .LP
66 \fIWriting Device Drivers\fR