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

Function prison_isvalid

freebsd/kern/kern_jail.c:3079–3086  ·  view source on GitHub ↗

* Return true if the prison is currently valid. A prison is valid if it has * been fully created, and is not being destroyed. Note that dying prisons * are still considered valid. */

Source from the content-addressed store, hash-verified

3077 * are still considered valid.
3078 */
3079bool
3080prison_isvalid(struct prison *pr)
3081{
3082
3083 if (__predict_false(refcount_load(&pr->pr_ref) == 0))
3084 return (false);
3085 return (true);
3086}
3087
3088/*
3089 * Return 1 if the passed credential is in a jail and that jail does not

Callers 11

shminitFunction · 0.85
kern_jail_setFunction · 0.85
kern_jail_getFunction · 0.85
sys_jail_removeFunction · 0.85
prison_findFunction · 0.85
prison_find_childFunction · 0.85
prison_find_nameFunction · 0.85
sysctl_jail_listFunction · 0.85
seminitFunction · 0.85
mqfs_prison_removeFunction · 0.85
msginitFunction · 0.85

Calls 1

refcount_loadFunction · 0.85

Tested by

no test coverage detected