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

Function export_vnode_to_sb

freebsd/kern/kern_descrip.c:4430–4445  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4428}
4429
4430static int
4431export_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.

Callers 2

kern_proc_filedesc_outFunction · 0.85
kern_proc_cwd_outFunction · 0.85

Calls 2

export_vnode_to_kinfoFunction · 0.85
export_kinfo_to_sbFunction · 0.85

Tested by

no test coverage detected