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

Function lf_print_owner

freebsd/kern/kern_lockf.c:2478–2490  ·  view source on GitHub ↗

* Print description of a lock owner */

Source from the content-addressed store, hash-verified

2476 * Print description of a lock owner
2477 */
2478static void
2479lf_print_owner(struct lock_owner *lo)
2480{
2481
2482 if (lo->lo_flags & F_REMOTE) {
2483 printf("remote pid %d, system %d",
2484 lo->lo_pid, lo->lo_sysid);
2485 } else if (lo->lo_flags & F_FLOCK) {
2486 printf("file %p", lo->lo_id);
2487 } else {
2488 printf("local pid %d", lo->lo_pid);
2489 }
2490}
2491
2492/*
2493 * Print out a lock.

Callers 6

lf_advlockasyncFunction · 0.85
graph_print_verticesFunction · 0.85
graph_add_edgeFunction · 0.85
graph_remove_edgeFunction · 0.85
lf_printFunction · 0.85
lf_printlistFunction · 0.85

Calls 1

printfFunction · 0.70

Tested by

no test coverage detected