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

Function pdhold

freebsd/kern/kern_descrip.c:2211–2221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2209}
2210
2211static struct pwddesc *
2212pdhold(struct proc *p)
2213{
2214 struct pwddesc *pdp;
2215
2216 PROC_LOCK_ASSERT(p, MA_OWNED);
2217 pdp = p->p_pd;
2218 if (pdp != NULL)
2219 refcount_acquire(&pdp->pd_refcount);
2220 return (pdp);
2221}
2222
2223static void
2224fddrop(struct filedesc *fdp)

Callers 4

mountcheckdirsFunction · 0.85
kern_proc_filedesc_outFunction · 0.85
kern_proc_cwd_outFunction · 0.85

Calls 1

refcount_acquireFunction · 0.85

Tested by

no test coverage detected