| 4428 | } |
| 4429 | |
| 4430 | static int |
| 4431 | export_vnode_to_sb(struct vnode *vp, int fd, int fflags, |
| 4432 | struct export_fd_buf *efbuf) |
| 4433 | { |
| 4434 | int error; |
| 4435 | |
| 4436 | if (efbuf->remainder == 0) |
| 4437 | return (0); |
| 4438 | if (efbuf->pdp != NULL) |
| 4439 | PWDDESC_XUNLOCK(efbuf->pdp); |
| 4440 | export_vnode_to_kinfo(vp, fd, fflags, &efbuf->kif, efbuf->flags); |
| 4441 | error = export_kinfo_to_sb(efbuf); |
| 4442 | if (efbuf->pdp != NULL) |
| 4443 | PWDDESC_XLOCK(efbuf->pdp); |
| 4444 | return (error); |
| 4445 | } |
| 4446 | |
| 4447 | /* |
| 4448 | * Store a process file descriptor information to sbuf. |
no test coverage detected