1di_minor_devt(3DEVINFOD)evice Information Library Functiondsi_minor_devt(3DEVINFO)
2
3
4

NAME

6       di_minor_devt,  di_minor_name,  di_minor_nodetype,  di_minor_spectype -
7       return libdevinfo minor node information
8

SYNOPSIS

10       cc [ flag... ] file... -ldevinfo [ library... ]
11       #include <libdevinfo.h>
12
13       dev_t di_minor_devt(di_minor_t minor);
14
15
16       char *di_minor_name(di_minor_t minor);
17
18
19       char *di_minor_nodetype(di_minor_t minor);
20
21
22       int di_minor_spectype(di_minor_t minor);
23
24

PARAMETERS

26       minor    A handle to minor data node.
27
28

DESCRIPTION

30        These functions return libdevinfo minor node information.
31

RETURN VALUES

33       The di_minor_name() function  returns  the  minor  name.  See  ddi_cre‐
34       ate_minor_node(9F) for a description of the name parameter.
35
36
37       The  di_minor_devt() function returns the dev_t value of the minor node
38       that is specified by SYS V ABI.  See  getmajor(9F),  getminor(9F),  and
39       ddi_create_minor_node(9F) for more information.
40
41
42       The  di_minor_spectype()  function  returns  the spec_type of the file,
43       either S_IFCHR or S_IFBLK. See ddi_create_minor_node(9F) for a descrip‐
44       tion of the spec_type parameter.
45
46
47       The  di_minor_nodetype()function  returns  the  minor  node_type of the
48       minor node. See ddi_create_minor_node(9F)  for  a  description  of  the
49       node_type parameter.
50

ERRORS

52       No errors are defined.
53

ATTRIBUTES

55       See attributes(5) for descriptions of the following attributes:
56
57
58
59
60       ┌─────────────────────────────┬─────────────────────────────┐
61       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
62       ├─────────────────────────────┼─────────────────────────────┤
63       │Interface Stability          │Evolving                     │
64       ├─────────────────────────────┼─────────────────────────────┤
65       │MT-Level                     │Safe                         │
66       └─────────────────────────────┴─────────────────────────────┘
67

SEE ALSO

69       attributes(5), ddi_create_minor_node(9F), getmajor(9F), getminor(9F)
70
71
72       Writing Device Drivers
73
74
75
76SunOS 5.11                        1 Dec 1998           di_minor_devt(3DEVINFO)
Impressum