MCPcopy Create free account
hub / github.com/F-Stack/f-stack / do_vn_io_fault

Function do_vn_io_fault

freebsd/kern/vfs_vnops.c:153–161  ·  view source on GitHub ↗

* Returns true if vn_io_fault mode of handling the i/o request should * be used. */

Source from the content-addressed store, hash-verified

151 * be used.
152 */
153static bool
154do_vn_io_fault(struct vnode *vp, struct uio *uio)
155{
156 struct mount *mp;
157
158 return (uio->uio_segflg == UIO_USERSPACE && vp->v_type == VREG &&
159 (mp = vp->v_mount) != NULL &&
160 (mp->mnt_kern_flag & MNTK_NO_IOPF) != 0 && vn_io_fault_enable);
161}
162
163/*
164 * Structure used to pass arguments to vn_io_fault1(), to do either

Callers 2

vn_rdwrFunction · 0.85
vn_io_faultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected