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

Function lf_remove_edge

freebsd/kern/kern_lockf.c:940–953  ·  view source on GitHub ↗

* Remove an edge from the lock graph. */

Source from the content-addressed store, hash-verified

938 * Remove an edge from the lock graph.
939 */
940static void
941lf_remove_edge(struct lockf_edge *e)
942{
943 struct owner_graph *g = &lf_owner_graph;
944 struct lockf_entry *x = e->le_from;
945 struct lockf_entry *y = e->le_to;
946
947 graph_remove_edge(g, x->lf_owner->lo_vertex, y->lf_owner->lo_vertex);
948 LIST_REMOVE(e, le_outlink);
949 LIST_REMOVE(e, le_inlink);
950 e->le_from = NULL;
951 e->le_to = NULL;
952 lf_free_edge(e);
953}
954
955/*
956 * Remove all out-going edges from lock x.

Callers 3

lf_remove_outgoingFunction · 0.85
lf_remove_incomingFunction · 0.85
lf_update_dependanciesFunction · 0.85

Calls 2

graph_remove_edgeFunction · 0.85
lf_free_edgeFunction · 0.85

Tested by

no test coverage detected