FreeBSD/sys/kern/kern_lockf.c
/*
 * Return true if a lock owner matches the details passed to
 * lf_advlock.
 */
Return true if a lock owner matches the details passed to
lf_advlock.
Return true if a lock owner matches the details passed to lf_advlock .
static int
lf_owner_matches(struct lock_owner *lo, caddr_t id, struct flock *fl,
    int flags)
{
	if (flags & F_REMOTE) {
		return lo->lo_pid == fl->l_pid
			&& lo->lo_sysid == fl->l_sysid;
	} else {
		return lo->lo_id == id;
	}
}
static int lf_owner_matches ( struct lock_owner * lo , caddr_t id , struct flock * fl , int flags ) { if ( flags & F_REMOTE ) { return lo -> lo_pid == fl -> l_pid && lo -> lo_sysid == fl -> l_sysid ; } else { return lo -> lo_id == id ; } }
Return true if a lock owner matches the details passed to
 lf_advlock.
Return true if a lock owner matches the details passed to lf_advlock .