xref: /titanic_41/usr/src/man/man3devinfo/di_minor_devt.3devinfo (revision ed22c7109fc5dd9e1b7a5d0333bdc7ad2718e2ab)
te
Copyright (c) 1998, Sun Microsystems, Inc. All Rights Reserved
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]
DI_MINOR_DEVT 3DEVINFO "Dec 1, 1998"
NAME
di_minor_devt, di_minor_name, di_minor_nodetype, di_minor_spectype - return libdevinfo minor node information
SYNOPSIS

cc [ flag... ] file... -ldevinfo [ library... ]
#include <libdevinfo.h>

dev_t di_minor_devt(di_minor_t minor);

char *di_minor_name(di_minor_t minor);

char *di_minor_nodetype(di_minor_t minor);

int di_minor_spectype(di_minor_t minor);
PARAMETERS
minor

A handle to minor data node.

DESCRIPTION

These functions return libdevinfo minor node information.

RETURN VALUES

The di_minor_name() function returns the minor name. See ddi_create_minor_node(9F) for a description of the name parameter.

The di_minor_devt() function returns the dev_t value of the minor node that is specified by SYS V ABI. See getmajor(9F), getminor(9F), and ddi_create_minor_node(9F) for more information.

The di_minor_spectype() function returns the spec_type of the file, either S_IFCHR or S_IFBLK. See ddi_create_minor_node(9F) for a description of the spec_type parameter.

The di_minor_nodetype()function returns the minor node_type of the minor node. See ddi_create_minor_node(9F) for a description of the node_type parameter.

ERRORS

No errors are defined.

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE ATTRIBUTE VALUE
Interface Stability Evolving
MT-Level Safe
SEE ALSO

attributes(5), ddi_create_minor_node(9F), getmajor(9F), getminor(9F)

Writing Device Drivers