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

Function unp_externalize_fp

freebsd/kern/uipc_usrreq.c:2534–2549  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2532}
2533
2534static int
2535unp_externalize_fp(struct file *fp)
2536{
2537 struct unpcb *unp;
2538 int ret;
2539
2540 UNP_LINK_WLOCK();
2541 if ((unp = fptounp(fp)) != NULL) {
2542 unp->unp_msgcount--;
2543 ret = 1;
2544 } else
2545 ret = 0;
2546 unp_rights--;
2547 UNP_LINK_WUNLOCK();
2548 return (ret);
2549}
2550
2551/*
2552 * unp_defer indicates whether additional work has been defered for a future

Callers 2

unp_externalizeFunction · 0.85
unp_discardFunction · 0.85

Calls 1

fptounpFunction · 0.85

Tested by

no test coverage detected