*** 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: VOP_BMAP | Section: 9 | Source: FreeBSD | File: VOP_BMAP.9.gz
VOP_BMAP(9) FreeBSD Kernel Developer's Manual VOP_BMAP(9) NAME VOP_BMAP - Logical to physical block number conversion SYNOPSIS #include <sys/param.h> #include <sys/vnode.h> int VOP_BMAP(struct vnode *vp, daddr_t bn, struct bufobj **bop, daddr_t *bnp, int *runp, int *runb); DESCRIPTION This vnode call is used to lookup the physical block number of the file system's underlying device where a given logical block of a file is stored. Its arguments are: vp The vnode of the file. bn Logical block number within the file identified by vp. bop Return storage for the buffer object associated with the file system's underlying device. bnp Return storage for the physical block number. runp Return storage for the number of succeeding logical blocks that may be efficiently read at the same time as the requested block. This will usually be the number of logical blocks whose physical blocks are contiguously allocated. However a file system is free to define "efficient" as it sees fit. runb Like runp but for preceding rather than succeeding blocks. Any of the return arguments may be NULL to indicate that the caller does not care about that information. LOCKS The vnode will be locked on entry and should remain locked on return. RETURN VALUES Zero is returned on success, otherwise an error code is returned. SEE ALSO vnode(9) HISTORY A bmap() function first appeared in 4.2BSD. AUTHORS This manual page was written by Alan Somers. FreeBSD 14.1-RELEASE-p8 June 19, 2019 FreeBSD 14.1-RELEASE-p8

Navigation Options