| 2209 | } |
| 2210 | |
| 2211 | static struct pwddesc * |
| 2212 | pdhold(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 | |
| 2223 | static void |
| 2224 | fddrop(struct filedesc *fdp) |
no test coverage detected