| 1984 | } |
| 1985 | |
| 1986 | static void |
| 1987 | unp_freerights(struct filedescent **fdep, int fdcount) |
| 1988 | { |
| 1989 | struct file *fp; |
| 1990 | int i; |
| 1991 | |
| 1992 | KASSERT(fdcount > 0, ("%s: fdcount %d", __func__, fdcount)); |
| 1993 | |
| 1994 | for (i = 0; i < fdcount; i++) { |
| 1995 | fp = fdep[i]->fde_file; |
| 1996 | filecaps_free(&fdep[i]->fde_caps); |
| 1997 | unp_discard(fp); |
| 1998 | } |
| 1999 | free(fdep[0], M_FILECAPS); |
| 2000 | } |
| 2001 | |
| 2002 | static int |
| 2003 | unp_externalize(struct mbuf *control, struct mbuf **controlp, int flags) |
no test coverage detected