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

Function vn_chown

freebsd/kern/vfs_vnops.c:2321–2334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2319}
2320
2321int
2322vn_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred,
2323 struct thread *td)
2324{
2325 struct vnode *vp;
2326
2327 vp = fp->f_vnode;
2328#ifdef AUDIT
2329 vn_lock(vp, LK_SHARED | LK_RETRY);
2330 AUDIT_ARG_VNODE1(vp);
2331 VOP_UNLOCK(vp);
2332#endif
2333 return (setfown(td, active_cred, vp, uid, gid));
2334}
2335
2336void
2337vn_pages_remove(struct vnode *vp, vm_pindex_t start, vm_pindex_t end)

Callers 1

pipe_chownFunction · 0.85

Calls 2

vn_lockFunction · 0.85
setfownFunction · 0.85

Tested by

no test coverage detected