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

Function sys_fhstat

freebsd/kern/vfs_syscalls.c:4549–4563  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4547};
4548#endif
4549int
4550sys_fhstat(struct thread *td, struct fhstat_args *uap)
4551{
4552 struct stat sb;
4553 struct fhandle fh;
4554 int error;
4555
4556 error = copyin(uap->u_fhp, &fh, sizeof(fh));
4557 if (error != 0)
4558 return (error);
4559 error = kern_fhstat(td, fh, &sb);
4560 if (error == 0)
4561 error = copyout(&sb, uap->sb, sizeof(sb));
4562 return (error);
4563}
4564
4565int
4566kern_fhstat(struct thread *td, struct fhandle fh, struct stat *sb)

Callers

nothing calls this directly

Calls 3

kern_fhstatFunction · 0.85
copyinFunction · 0.50
copyoutFunction · 0.50

Tested by

no test coverage detected