Query: ng_device
OS: netbsd
Section: 4
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
NG_DEVICE(4) BSD Kernel Interfaces Manual NG_DEVICE(4)NAMEng_device -- device netgraph node typeSYNOPSIS#include <netgraph/ng_device.h>DESCRIPTIONA device node is both a netgraph node and a system device interface. When a device node is created, a new device entry appears which is accessible via the regular file operators such as open(2), close(2), read(2), write(2), etc. The first node is created as /dev/ngd0, all subsequent nodes /dev/ngd1, /dev/ngd2, etc.HOOKSA device node has a single hook with an arbitrary name. All data coming in over the hook will be presented to the device for read(2). All data coming in from the device entry by write(2) will be forwarded to the hook.CONTROL MESSAGESThe device node supports one non-generic control message: NGM_DEVICE_GET_DEVNAME Returns device name corresponding to a node.SHUTDOWNThis node shuts down upon receipt of a NGM_SHUTDOWN control message, or upon hook disconnection. The associated device entry is removed and becomes available for use by future device nodes.SEE ALSOnetgraph(4), ngctl(8)HISTORYThe device node type was first implemented in FreeBSD 5.0.AUTHORSMark Santcroos <marks@ripe.net> Gleb Smirnoff <glebius@FreeBSD.org>BSDOctober 19, 2004 BSD
Related Man Pages |
---|
ng_device(4) - debian |
ng_sppp(4) - debian |
ng_sppp(4) - opensolaris |
ng_device(4) - centos |
ng_device(4) - linux |
Similar Topics in the Unix Linux Community |
---|
browsing OBP device tree -- question |
how to read or write device files |
tmssar error |
Mount FIle systems from node-1 onto node-2 |