| 2526 | } |
| 2527 | |
| 2528 | static int |
| 2529 | mqf_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 | |
| 2542 | static int |
| 2543 | mqf_stat(struct file *fp, struct stat *st, struct ucred *active_cred, |
nothing calls this directly
no test coverage detected