xref: /illumos-gate/usr/src/man/man9f/ddi_remove_minor_node.9f (revision 78a2e113edb6fe0a0382b403b55d92e8f0bba78f)
te
Copyright (c) 1992, Sun Microsystems, Inc.
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.
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.
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]
DDI_REMOVE_MINOR_NODE 9F "Mar 10, 1992"
NAME
ddi_remove_minor_node - remove a minor node for this dev_info
SYNOPSIS

void ddi_remove_minor_node(dev_info_t *dip, char *name);
INTERFACE LEVEL

Solaris DDI specific (Solaris DDI).

PARAMETERS
dip

A pointer to the device's dev_info structure.

name

The name of this minor device. If name is NULL, then remove all minor data structures from this dev_info.

DESCRIPTION

ddi_remove_minor_node() removes a data structure from the linked list of minor data structures that is pointed to by the dev_info structure for this driver.

EXAMPLES

Example 1 Removing a minor node

This will remove a data structure describing a minor device called dev1 which is linked into the dev_info structure pointed to by dip:

 ddi_remove_minor_node(dip, "dev1");
SEE ALSO

attach(9E), detach(9E), ddi_create_minor_node(9F)

Writing Device Drivers