NAME | SYNOPSIS | DESCRIPTION | ATTRIBUTES | SEE ALSO
The C_INIT(1M) built-in command, mkdev, is used to
create an interface in the IOM actor. mkdev behaves differently, depending on the type of device to create. It takes the following arguments:
Creates a BSD packet filter structure in the IOM actor. bpf requires a node device such as /dev/bpf0.
Binds the interface to the hardware device corresponding to the path in the device driver tree. If dtree_path is not provided, the interface is bound to the first available device in the device driver tree.
Creates an ifnet structure of type Ethernet in the IOM actor.
Creates an ifnet structure of type loopback in the IOM actor. The loopback interface is purely logical.
Creates an ifnet structure of type PPP in the IOM actor. The interface does not rely directly on a serial hardware driver, but instead is bound at runtime to a tty interface.
Creates an ifnet structure of type SLIP in the IOM actor. The interface does not rely directly on a serial hardware driver, but instead is bound at runtime to a tty interface.
Creates a tty structure in the IOM actor. In contrast to Ethernet, tty requires a node device, such as /dev/tty01.
Represents the unit number of the interface. For bpf and tty interfaces, the unit number corresponds to the node minor number. See mknod(1M) man page for details.
sysadm.ini(4CC) contains numerous examples of interface creation using mkdev.
See attributes(5) for descriptions of the following attributes:
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|---|---|
| Interface Stability | Evolving |
NAME | SYNOPSIS | DESCRIPTION | ATTRIBUTES | SEE ALSO