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

Function filt_sowdetach

freebsd/kern/uipc_socket.c:3851–3861  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3849}
3850
3851static void
3852filt_sowdetach(struct knote *kn)
3853{
3854 struct socket *so = kn->kn_fp->f_data;
3855
3856 so_wrknl_lock(so);
3857 knlist_remove(&so->so_wrsel.si_note, kn, 1);
3858 if (!SOLISTENING(so) && knlist_empty(&so->so_wrsel.si_note))
3859 so->so_snd.sb_flags &= ~SB_KNOTE;
3860 so_wrknl_unlock(so);
3861}
3862
3863/*ARGSUSED*/
3864static int

Callers

nothing calls this directly

Calls 4

so_wrknl_lockFunction · 0.85
knlist_removeFunction · 0.85
knlist_emptyFunction · 0.85
so_wrknl_unlockFunction · 0.85

Tested by

no test coverage detected