VOP_BMAP(9) | Kernel Developer's Manual | VOP_BMAP(9) |
VOP_BMAP
— Logical
to physical block number conversion
#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);
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:
Any of the return arguments may be NULL
to
indicate that the caller does not care about that information.
The vnode will be locked on entry and should remain locked on return.
Zero is returned on success, otherwise an error code is returned.
A bmap
() function first appeared in
4.2BSD.
This manual page was written by Alan Somers.
June 19, 2019 | Debian |