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

Function closefp

freebsd/kern/kern_descrip.c:1320–1332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1318}
1319
1320static int
1321closefp(struct filedesc *fdp, int fd, struct file *fp, struct thread *td,
1322 bool holdleaders, bool audit)
1323{
1324
1325 FILEDESC_XLOCK_ASSERT(fdp);
1326
1327 if (__predict_false(td->td_proc->p_fdtol != NULL)) {
1328 return (closefp_hl(fdp, fd, fp, td, holdleaders, audit));
1329 } else {
1330 return (closefp_impl(fdp, fd, fp, td, audit));
1331 }
1332}
1333
1334/*
1335 * Close a file descriptor.

Callers 4

kern_dupFunction · 0.85
kern_closeFunction · 0.85
kern_close_rangeFunction · 0.85
fdcloseexecFunction · 0.85

Calls 2

closefp_hlFunction · 0.85
closefp_implFunction · 0.85

Tested by

no test coverage detected