*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: getdevvp | Section: 9 | Source: OpenBSD | File: getdevvp.9
GETDEVVP(9) FreeBSD Kernel Developer's Manual GETDEVVP(9) NAME getdevvp, bdevvp, cdevvp - create a vnode for a device SYNOPSIS #include <sys/param.h> #include <sys/vnode.h> int getdevvp(dev_t dev, struct vnode **vpp, enum vtype type); int bdevvp(dev_t dev, struct vnode **vpp); int cdevvp(dev_t dev, struct vnode **vpp); DESCRIPTION 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 handling. RETURN VALUES All functions return 0 on success. If an error occurs, vpp will point to a NULLVP. See getnewvnode(9) for further return values. SEE ALSO getnewvnode(9), vnode(9) FreeBSD 14.1-RELEASE-p8 November 14, 2020 FreeBSD 14.1-RELEASE-p8

Navigation Options