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

Function lf_alloc_edge

freebsd/kern/kern_lockf.c:870–875  ·  view source on GitHub ↗

* Allocate a lock edge from the free list */

Source from the content-addressed store, hash-verified

868 * Allocate a lock edge from the free list
869 */
870static struct lockf_edge *
871lf_alloc_edge(void)
872{
873
874 return (malloc(sizeof(struct lockf_edge), M_LOCKF, M_WAITOK|M_ZERO));
875}
876
877/*
878 * Free a lock edge.

Callers 1

lf_add_edgeFunction · 0.85

Calls 1

mallocFunction · 0.85

Tested by

no test coverage detected