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

Function freebsd11_nfstat

freebsd/kern/kern_descrip.c:1570–1583  ·  view source on GitHub ↗

ARGSUSED */

Source from the content-addressed store, hash-verified

1568#endif
1569/* ARGSUSED */
1570int
1571freebsd11_nfstat(struct thread *td, struct freebsd11_nfstat_args *uap)
1572{
1573 struct nstat nub;
1574 struct stat ub;
1575 int error;
1576
1577 error = kern_fstat(td, uap->fd, &ub);
1578 if (error == 0) {
1579 freebsd11_cvtnstat(&ub, &nub);
1580 error = copyout(&nub, uap->sb, sizeof(nub));
1581 }
1582 return (error);
1583}
1584#endif /* COMPAT_FREEBSD11 */
1585
1586/*

Callers

nothing calls this directly

Calls 3

kern_fstatFunction · 0.85
freebsd11_cvtnstatFunction · 0.85
copyoutFunction · 0.50

Tested by

no test coverage detected