CSX_MAKEDEVICENODE(9F) | Kernel Functions for Drivers | CSX_MAKEDEVICENODE(9F) |
csx_MakeDeviceNode, csx_RemoveDeviceNode - create and remove minor nodes on behalf of the client
#include <sys/pccard.h> int32_t csx_MakeDeviceNode(client_handle_t ch, make_device_node_t *dn);
int32_t csx_RemoveDeviceNode(client_handle_t ch, remove_device_node_t *dn);
illumos DDI Specific (illumos DDI)
ch
dn
csx_MakeDeviceNode() and csx_RemoveDeviceNode() are illumos-specific extensions to allow the client to request that device nodes in the filesystem are created or removed, respectively, on its behalf.
The structure members of make_device_node_t are:
uint32_t Action; /* device operation */ uint32_t NumDevNodes; /* number of nodes to create */ devnode_desc_t *devnode_desc; /* description of device nodes */
The structure members of remove_device_node_t are:
uint32_t Action; /* device operation */ uint32_t NumDevNodes; /* number of nodes to remove */ devnode_desc_t *devnode_desc; /* description of device nodes */
The structure members of devnode_desc_t are:
char *name; /* device node path and name */ int32_t spec_type; /* device special type (block or char) */ int32_t minor_num; /* device node minor number */ char *node_type; /* device node type */
The Action field is used to specify the operation that csx_MakeDeviceNode() and csx_RemoveDeviceNode() should perform.
The following Action values are defined for csx_MakeDeviceNode():
CREATE_DEVICE_NODE
The following Action values are defined for csx_RemoveDeviceNode():
REMOVE_DEVICE_NODE
REMOVE_ALL_DEVICE_NODES
For csx_MakeDeviceNode(), if the Action field is:
CREATE_DEVICE_NODE
For csx_RemoveDeviceNode(), if the Action field is:
REMOVE_DEVICE_NODE
REMOVE_ALL_DEVICE_NODES
CS_SUCCESS
CS_BAD_HANDLE
CS_BAD_ATTRIBUTE
CS_BAD_ARGS
CS_OUT_OF_RESOURCE
CS_UNSUPPORTED_FUNCTION
These functions may be called from user or kernel context.
csx_RegisterClient(9F), ddi_create_minor_node(9F), ddi_remove_minor_node(9F)
PC Card 95 Standard, PCMCIA/JEIDA
July 19, 1996 | OmniOS |