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

Function fdshare

freebsd/kern/kern_descrip.c:2263–2269  ·  view source on GitHub ↗

* Share a filedesc structure. */

Source from the content-addressed store, hash-verified

2261 * Share a filedesc structure.
2262 */
2263struct filedesc *
2264fdshare(struct filedesc *fdp)
2265{
2266
2267 refcount_acquire(&fdp->fd_refcnt);
2268 return (fdp);
2269}
2270
2271/*
2272 * Share a pwddesc structure.

Callers 1

do_forkFunction · 0.85

Calls 1

refcount_acquireFunction · 0.85

Tested by

no test coverage detected