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

Function sem_find_prison

freebsd/kern/sysv_sem.c:600–610  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

598}
599
600static struct prison *
601sem_find_prison(struct ucred *cred)
602{
603 struct prison *pr, *rpr;
604
605 pr = cred->cr_prison;
606 prison_lock(pr);
607 rpr = osd_jail_get(pr, sem_prison_slot);
608 prison_unlock(pr);
609 return rpr;
610}
611
612static int
613sem_prison_cansee(struct prison *rpr, struct semid_kernel *semakptr)

Callers 4

kern_semctlFunction · 0.85
sys_semgetFunction · 0.85
sys_semopFunction · 0.85
sysctl_semaFunction · 0.85

Calls 2

prison_lockFunction · 0.85
prison_unlockFunction · 0.85

Tested by

no test coverage detected