bdevvp man page on OpenBSD

Man page or keyword search:  
man Server   11362 pages
apropos Keyword Search (all sections)
Output format
OpenBSD logo
[printable version]

GETDEVVP(9)		     OpenBSD Kernel Manual		   GETDEVVP(9)

     getdevvp, bdevvp, cdevvp - create a vnode for a device

     #include <sys/param.h>
     #include <sys/vnode.h>

     getdevvp(dev_t dev, struct vnode **vpp, enum vtype type);

     bdevvp(dev_t dev, struct vnode **vpp);

     cdevvp(dev_t dev, struct vnode **vpp);

     The getdevvp() function creates a vnode for a device of type type with a
     device number of dev, and returns a pointer to it in vpp.

     Its arguments are:

     dev	   The device number of the desired device.

     vpp	   Where the vnode will be returned on success.

     type	   The type of device, either:

		   VBLK	     For a block device, or

		   VCHR	     for a character device.

     bdevvp() and cdevvp() use getdevvp internally, specifying the third
     argument.	bdevvp() will create a vnode for a block device, and is used
     for the root file system and swap areas, among other things.  cdevvp()
     will create a vnode for a character device and is used in console

     All functions return 0 on success.	 If an error occurs, vpp will point to
     a NULLVP.	See getnewvnode(9) for further return values.

     getnewvnode(9), vnode(9)

OpenBSD 4.9			 May 31, 2007			   OpenBSD 4.9

List of man pages available for OpenBSD

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
Vote for polarhome
Free Shell Accounts :: the biggest list on the net