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

Function sglist_free

freebsd/kern/subr_sglist.c:299–308  ·  view source on GitHub ↗

* Free a scatter/gather list allocated via sglist_allc(). */

Source from the content-addressed store, hash-verified

297 * Free a scatter/gather list allocated via sglist_allc().
298 */
299void
300sglist_free(struct sglist *sg)
301{
302
303 if (sg == NULL)
304 return;
305
306 if (refcount_release(&sg->sg_refs))
307 free(sg, M_SGLIST);
308}
309
310/*
311 * Append the segments to describe a single kernel virtual address

Callers 4

ccp_free_queuesFunction · 0.85
vmm_mmio_allocFunction · 0.85
sglist_buildFunction · 0.85
sg_pager_deallocFunction · 0.85

Calls 2

refcount_releaseFunction · 0.85
freeFunction · 0.70

Tested by

no test coverage detected