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

Function prison_hold_locked

freebsd/kern/kern_jail.c:2651–2657  ·  view source on GitHub ↗

* Hold a prison reference, by incrementing pr_ref. It is generally * an error to hold a prison that does not already have a reference. * A prison record will remain valid as long as it has at least one * reference, and will not be removed as long as either the prison * mutex or the allprison lock is held (allprison_lock may be shared). */

Source from the content-addressed store, hash-verified

2649 * mutex or the allprison lock is held (allprison_lock may be shared).
2650 */
2651void
2652prison_hold_locked(struct prison *pr)
2653{
2654
2655 /* Locking is no longer required. */
2656 prison_hold(pr);
2657}
2658
2659void
2660prison_hold(struct prison *pr)

Callers 3

zone_dataset_attachFunction · 0.50
if_vmove_loanFunction · 0.50
if_vmove_reclaimFunction · 0.50

Calls 1

prison_holdFunction · 0.85

Tested by

no test coverage detected