FreeBSD/sys/kern/kern_lockf.c
/*
 * Remove an edge from the lock graph.
 */
Remove an edge from the lock graph.
Remove an edge from the lock graph .
static void
lf_remove_edge(struct lockf_edge *e)
{
	struct owner_graph *g = &lf_owner_graph;
	struct lockf_entry *x = e->le_from;
	struct lockf_entry *y = e->le_to;
	graph_remove_edge(g, x->lf_owner->lo_vertex, y->lf_owner->lo_vertex);
	LIST_REMOVE(e, le_outlink);
	LIST_REMOVE(e, le_inlink);
	e->le_from = NULL;
	e->le_to = NULL;
	lf_free_edge(e);
}
static void lf_remove_edge ( struct lockf_edge * e ) { struct owner_graph * g = & lf_owner_graph ; struct lockf_entry * x = e -> le_from ; struct lockf_entry * y = e -> le_to ; graph_remove_edge ( g , x -> lf_owner -> lo_vertex , y -> lf_owner -> lo_vertex ) ; LIST_REMOVE ( e , le_outlink ) ; LIST_REMOVE ( e , le_inlink ) ; e -> le_from = NULL ; e -> le_to = NULL ; lf_free_edge ( e ) ; }
Remove an edge from the lock graph.
Remove an edge from the lock graph .