| 2532 | } |
| 2533 | |
| 2534 | static int |
| 2535 | unp_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 |
no test coverage detected