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

Function freebsd11_fhstat

freebsd/kern/vfs_syscalls.c:2322–2340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2320}
2321
2322int
2323freebsd11_fhstat(struct thread *td, struct freebsd11_fhstat_args* uap)
2324{
2325 struct fhandle fh;
2326 struct stat sb;
2327 struct freebsd11_stat osb;
2328 int error;
2329
2330 error = copyin(uap->u_fhp, &fh, sizeof(fhandle_t));
2331 if (error != 0)
2332 return (error);
2333 error = kern_fhstat(td, fh, &sb);
2334 if (error != 0)
2335 return (error);
2336 error = freebsd11_cvtstat(&sb, &osb);
2337 if (error == 0)
2338 error = copyout(&osb, uap->sb, sizeof(osb));
2339 return (error);
2340}
2341
2342int
2343freebsd11_fstatat(struct thread *td, struct freebsd11_fstatat_args* uap)

Callers

nothing calls this directly

Calls 4

kern_fhstatFunction · 0.85
freebsd11_cvtstatFunction · 0.85
copyinFunction · 0.50
copyoutFunction · 0.50

Tested by

no test coverage detected