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

Function kern_readv

freebsd/kern/sys_generic.c:281–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279}
280
281int
282kern_readv(struct thread *td, int fd, struct uio *auio)
283{
284 struct file *fp;
285 int error;
286
287 error = fget_read(td, fd, &cap_read_rights, &fp);
288 if (error)
289 return (error);
290 error = dofileread(td, fd, fp, auio, (off_t)-1, 0);
291 fdrop(fp, td);
292 return (error);
293}
294
295/*
296 * Scatter positioned read system call.

Callers 5

linux_readvFunction · 0.85
sys_readFunction · 0.85
sys_readvFunction · 0.85
ff_readFunction · 0.85
ff_readvFunction · 0.85

Calls 2

fget_readFunction · 0.85
dofilereadFunction · 0.85

Tested by

no test coverage detected