Changeset View
Changeset View
Standalone View
Standalone View
head/sys/kern/vfs_subr.c
Show First 20 Lines • Show All 4,034 Lines • ▼ Show 20 Lines | vcount(struct vnode *vp) | ||||
count = vp->v_rdev->si_usecount; | count = vp->v_rdev->si_usecount; | ||||
dev_unlock(); | dev_unlock(); | ||||
return (count); | return (count); | ||||
} | } | ||||
/* | /* | ||||
* Print out a description of a vnode. | * Print out a description of a vnode. | ||||
*/ | */ | ||||
static char *typename[] = | static const char * const typename[] = | ||||
{"VNON", "VREG", "VDIR", "VBLK", "VCHR", "VLNK", "VSOCK", "VFIFO", "VBAD", | {"VNON", "VREG", "VDIR", "VBLK", "VCHR", "VLNK", "VSOCK", "VFIFO", "VBAD", | ||||
"VMARKER"}; | "VMARKER"}; | ||||
void | void | ||||
vn_printf(struct vnode *vp, const char *fmt, ...) | vn_printf(struct vnode *vp, const char *fmt, ...) | ||||
{ | { | ||||
va_list ap; | va_list ap; | ||||
char buf[256], buf2[16]; | char buf[256], buf2[16]; | ||||
▲ Show 20 Lines • Show All 2,418 Lines • Show Last 20 Lines |