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

Function sys_preadv

freebsd/kern/sys_generic.c:306–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304};
305#endif
306int
307sys_preadv(struct thread *td, struct preadv_args *uap)
308{
309 struct uio *auio;
310 int error;
311
312 error = copyinuio(uap->iovp, uap->iovcnt, &auio);
313 if (error)
314 return (error);
315 error = kern_preadv(td, uap->fd, auio, uap->offset);
316 free(auio, M_IOV);
317 return (error);
318}
319
320int
321kern_preadv(struct thread *td, int fd, struct uio *auio, off_t offset)

Callers

nothing calls this directly

Calls 3

kern_preadvFunction · 0.85
copyinuioFunction · 0.70
freeFunction · 0.70

Tested by

no test coverage detected