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

Function sys_pwritev

freebsd/kern/sys_generic.c:508–520  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

506};
507#endif
508int
509sys_pwritev(struct thread *td, struct pwritev_args *uap)
510{
511 struct uio *auio;
512 int error;
513
514 error = copyinuio(uap->iovp, uap->iovcnt, &auio);
515 if (error)
516 return (error);
517 error = kern_pwritev(td, uap->fd, auio, uap->offset);
518 free(auio, M_IOV);
519 return (error);
520}
521
522int
523kern_pwritev(struct thread *td, int fd, struct uio *auio, off_t offset)

Callers

nothing calls this directly

Calls 3

kern_pwritevFunction · 0.85
copyinuioFunction · 0.70
freeFunction · 0.70

Tested by

no test coverage detected