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

Function notifier_remove

freebsd/kern/uipc_mqueue.c:1995–2010  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1993}
1994
1995static void
1996notifier_remove(struct proc *p, struct mqueue *mq, int fd)
1997{
1998 struct mqueue_notifier *nt;
1999
2000 mtx_assert(&mq->mq_mutex, MA_OWNED);
2001 PROC_LOCK(p);
2002 nt = notifier_search(p, fd);
2003 if (nt != NULL) {
2004 if (mq->mq_notifier == nt)
2005 mq->mq_notifier = NULL;
2006 sigqueue_take(&nt->nt_ksi);
2007 notifier_delete(p, nt);
2008 }
2009 PROC_UNLOCK(p);
2010}
2011
2012static int
2013kern_kmq_open(struct thread *td, const char *upath, int flags, mode_t mode,

Callers 3

kern_kmq_notifyFunction · 0.85
mqueue_fdcloseFunction · 0.85
mq_proc_exitFunction · 0.85

Calls 4

mtx_assertFunction · 0.85
notifier_searchFunction · 0.85
sigqueue_takeFunction · 0.85
notifier_deleteFunction · 0.85

Tested by

no test coverage detected