NDEVD(8)

NAME
ndevd - device publish daemon for automatic device node creation

SYNOPSIS
ndevd [-1f]

DESCRIPTION
ndevd listens on drvctl(4) for new devices and creates their device nodes using MAKEDEV(8) if they are missing.

When -f is specified, ndevd does not go into the background. With the option -1 it will also exit after the initial setup of device nodes.

ndevd runs /libexec/devpubd-run-hooks. This script runs each script found in /libexec/devpubd-hooks in a lexical order with two arguments: device-attach or device-detach and the device file name. The default installation supplies the 01-makedev script for creating a device node and the 02-wedgenames script for creating symlinks to wedge devices under /dev/wedges. Additional scripts may be added for other dynamic device actions.

Since drvctl(4) allows only one active reader, ndevd multiplexes it, forwarding all events to the connected clients. Clients connect by opening the SOCK_SEQPACKET Unix domain socket at /var/run/ndevd.socket.

SEE ALSO
drvctl(8), MAKEDEV(8)

BUGS