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

Function mqfs_remove

freebsd/kern/uipc_mqueue.c:1065–1079  ·  view source on GitHub ↗

* vnode removal operation */

Source from the content-addressed store, hash-verified

1063 * vnode removal operation
1064 */
1065static int
1066mqfs_remove(struct vop_remove_args *ap)
1067{
1068 struct mqfs_info *mqfs = VFSTOMQFS(ap->a_dvp->v_mount);
1069 struct mqfs_node *pn;
1070 int error;
1071
1072 if (ap->a_vp->v_type == VDIR)
1073 return (EPERM);
1074 pn = VTON(ap->a_vp);
1075 sx_xlock(&mqfs->mi_lock);
1076 error = do_unlink(pn, ap->a_cnp->cn_cred);
1077 sx_xunlock(&mqfs->mi_lock);
1078 return (error);
1079}
1080
1081#if 0
1082struct vop_inactive_args {

Callers

nothing calls this directly

Calls 1

do_unlinkFunction · 0.85

Tested by

no test coverage detected