FreeBSD/sys/kern/kern_lockf.c
/*
 * Print description of a lock owner
 */
Print description of a lock owner
Print description of a lock owner
static void
lf_print_owner(struct lock_owner *lo)
{
	if (lo->lo_flags & F_REMOTE) {
		printf("remote pid %d, system %d",
		    lo->lo_pid, lo->lo_sysid);
	} else if (lo->lo_flags & F_FLOCK) {
		printf("file %p", lo->lo_id);
	} else {
		printf("local pid %d", lo->lo_pid);
	}
}
static void lf_print_owner ( struct lock_owner * lo ) { if ( lo -> lo_flags & F_REMOTE ) { printf ( " " , lo -> lo_pid , lo -> lo_sysid ) ; } else if ( lo -> lo_flags & F_FLOCK ) { printf ( " " , lo -> lo_id ) ; } else { printf ( " " , lo -> lo_pid ) ; } }
Print description of a lock owner
Print description of a lock owner