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

Function finstall_refed

freebsd/kern/kern_descrip.c:2084–2100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2082}
2083
2084int
2085finstall_refed(struct thread *td, struct file *fp, int *fd, int flags,
2086 struct filecaps *fcaps)
2087{
2088 struct filedesc *fdp = td->td_proc->p_fd;
2089 int error;
2090
2091 MPASS(fd != NULL);
2092
2093 FILEDESC_XLOCK(fdp);
2094 error = fdalloc(td, 0, fd);
2095 if (__predict_true(error == 0)) {
2096 _finstall(fdp, fp, *fd, flags, fcaps);
2097 }
2098 FILEDESC_XUNLOCK(fdp);
2099 return (error);
2100}
2101
2102int
2103finstall(struct thread *td, struct file *fp, int *fd, int flags,

Callers 3

falloc_capsFunction · 0.85
finstallFunction · 0.85
kern_openatFunction · 0.85

Calls 2

fdallocFunction · 0.85
_finstallFunction · 0.85

Tested by

no test coverage detected