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

Function pdshare

freebsd/kern/kern_descrip.c:2274–2279  ·  view source on GitHub ↗

* Share a pwddesc structure. */

Source from the content-addressed store, hash-verified

2272 * Share a pwddesc structure.
2273 */
2274struct pwddesc *
2275pdshare(struct pwddesc *pdp)
2276{
2277 refcount_acquire(&pdp->pd_refcount);
2278 return (pdp);
2279}
2280
2281/*
2282 * Unshare a filedesc structure, if necessary by making a copy

Callers 1

do_forkFunction · 0.85

Calls 1

refcount_acquireFunction · 0.85

Tested by

no test coverage detected