Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ng_device(4) [plan9 man page]

NG_DEVICE(4)						   BSD Kernel Interfaces Manual 					      NG_DEVICE(4)

NAME
ng_device -- device netgraph node type SYNOPSIS
#include <netgraph/ng_device.h> DESCRIPTION
A 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. HOOKS
A 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 MESSAGES
The device node supports one non-generic control message: NGM_DEVICE_GET_DEVNAME Returns device name corresponding to a node. SHUTDOWN
This 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 ALSO
netgraph(4), ngctl(8) HISTORY
The device node type was first implemented in FreeBSD 5.0. AUTHORS
Mark Santcroos <marks@ripe.net> Gleb Smirnoff <glebius@FreeBSD.org> BSD
October 19, 2004 BSD

Check Out this Related Man Page

NG_DEVICE(4)						   BSD Kernel Interfaces Manual 					      NG_DEVICE(4)

NAME
ng_device -- device netgraph node type SYNOPSIS
#include <netgraph/ng_device.h> DESCRIPTION
A 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. HOOKS
A 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 MESSAGES
The device node supports one non-generic control message: NGM_DEVICE_GET_DEVNAME Returns device name corresponding to a node. SHUTDOWN
This 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 ALSO
netgraph(4), ngctl(8) HISTORY
The device node type was first implemented in FreeBSD 5.0. AUTHORS
Mark Santcroos <marks@ripe.net> Gleb Smirnoff <glebius@FreeBSD.org> BSD
October 19, 2004 BSD
Man Page

4 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

browsing OBP device tree -- question

Does anyone know the difference between these two OBP commands? dev device-path Chooses the indicated device node, making it the current node. " device-path" select-dev Selects the specified device and make it the active node. I am a bit confused about this...Thanks. (1 Reply)
Discussion started by: dangral
1 Replies

2. UNIX for Dummies Questions & Answers

how to read or write device files

hi everybody, i am working in device drivers.As a beginner to this field ,i dont know how to read or write device files. Will copy_to_user and copy_from_user help me? I have created a device file using mknod command .Can anybody help me in this regard :confused thanks in advance sriram (1 Reply)
Discussion started by: sriram.ec
1 Replies

3. AIX

tmssar error

When ever i run extended varification and synchronization (HACMP) am getting error ERROR: HACMP TMSSA device: /dev/tmssa1 does not exist on node (4 Replies)
Discussion started by: vjm
4 Replies

4. HP-UX

Mount FIle systems from node-1 onto node-2

Hi, We have HP UX service guard cluster on OS 11.23. Recently 40+ LUNs presented to both nodes by SAN team but I was asked to mount them on only one node. I created required VGs/LVs, created VxFS and mounted all of them and they are working fine. Now client requested those FS on 2nd node as... (4 Replies)
Discussion started by: prvnrk
4 Replies