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

Function lf_overlaps

freebsd/kern/kern_lockf.c:848–853  ·  view source on GitHub ↗

* Return non-zero if locks 'x' and 'y' overlap. */

Source from the content-addressed store, hash-verified

846 * Return non-zero if locks 'x' and 'y' overlap.
847 */
848static int
849lf_overlaps(struct lockf_entry *x, struct lockf_entry *y)
850{
851
852 return (x->lf_start <= y->lf_end && x->lf_end >= y->lf_start);
853}
854
855/*
856 * Return non-zero if lock 'x' is blocked by lock 'y' (or vice versa).

Callers 2

lf_advlockasyncFunction · 0.85
lf_blocksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected