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

Function sys_fstatfs

freebsd/kern/vfs_syscalls.c:355–367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

353};
354#endif
355int
356sys_fstatfs(struct thread *td, struct fstatfs_args *uap)
357{
358 struct statfs *sfp;
359 int error;
360
361 sfp = malloc(sizeof(struct statfs), M_STATFS, M_WAITOK);
362 error = kern_fstatfs(td, uap->fd, sfp);
363 if (error == 0)
364 error = copyout(sfp, uap->buf, sizeof(struct statfs));
365 free(sfp, M_STATFS);
366 return (error);
367}
368
369int
370kern_fstatfs(struct thread *td, int fd, struct statfs *buf)

Callers

nothing calls this directly

Calls 4

mallocFunction · 0.85
kern_fstatfsFunction · 0.85
freeFunction · 0.70
copyoutFunction · 0.50

Tested by

no test coverage detected