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

Function lf_alloc_vertex

freebsd/kern/kern_lockf.c:891–899  ·  view source on GitHub ↗

* Ensure that the lock's owner has a corresponding vertex in the * owner graph. */

Source from the content-addressed store, hash-verified

889 * owner graph.
890 */
891static void
892lf_alloc_vertex(struct lockf_entry *lock)
893{
894 struct owner_graph *g = &lf_owner_graph;
895
896 if (!lock->lf_owner->lo_vertex)
897 lock->lf_owner->lo_vertex =
898 graph_alloc_vertex(g, lock->lf_owner);
899}
900
901/*
902 * Attempt to record an edge from lock x to lock y. Return EDEADLK if

Callers 1

lf_add_edgeFunction · 0.85

Calls 1

graph_alloc_vertexFunction · 0.85

Tested by

no test coverage detected