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

Function mqf_close

freebsd/kern/uipc_mqueue.c:2528–2540  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2526}
2527
2528static int
2529mqf_close(struct file *fp, struct thread *td)
2530{
2531 struct mqfs_node *pn;
2532
2533 fp->f_ops = &badfileops;
2534 pn = fp->f_data;
2535 fp->f_data = NULL;
2536 sx_xlock(&mqfs_data.mi_lock);
2537 mqnode_release(pn);
2538 sx_xunlock(&mqfs_data.mi_lock);
2539 return (0);
2540}
2541
2542static int
2543mqf_stat(struct file *fp, struct stat *st, struct ucred *active_cred,

Callers

nothing calls this directly

Calls 1

mqnode_releaseFunction · 0.85

Tested by

no test coverage detected