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

Function unp_freerights

freebsd/kern/uipc_usrreq.c:1986–2000  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1984}
1985
1986static void
1987unp_freerights(struct filedescent **fdep, int fdcount)
1988{
1989 struct file *fp;
1990 int i;
1991
1992 KASSERT(fdcount > 0, ("%s: fdcount %d", __func__, fdcount));
1993
1994 for (i = 0; i < fdcount; i++) {
1995 fp = fdep[i]->fde_file;
1996 filecaps_free(&fdep[i]->fde_caps);
1997 unp_discard(fp);
1998 }
1999 free(fdep[0], M_FILECAPS);
2000}
2001
2002static int
2003unp_externalize(struct mbuf *control, struct mbuf **controlp, int flags)

Callers 2

unp_externalizeFunction · 0.85

Calls 3

filecaps_freeFunction · 0.85
unp_discardFunction · 0.85
freeFunction · 0.70

Tested by

no test coverage detected