sys_readv [fs/read_write.c]
Reads a number of blocks from a file or device into multiple buffers. Arguments
eax | 145
ebx | File descriptor.
ecx | Pointer to an array of properly initialized iovec structures:
`struc iovec { iov_base rd 1 ; Starting address iov_len rd 1 ; Number of bytes {`
edx | Number of iovec structures in the array pointed by ecx.
Return values If the system call succeeds the return value is the number of bytes read. If the system call fails the return value is one of the following errno values:
`-EAGAIN` | `Non-blocking I/O has been selected using O_NONBLOCK and no data was immediately available for reading.`
`-EBADF` | `ebx is not a valid file descriptor or is not open for reading.`
`-EFAULT` | `ecx is outside your accessible address space.`
`-EINTR` | `The call was interrupted by a signal before any data was read.`
`-EINVAL` | `ebx is attached to an object which is unsuitable for reading; or the file was opened with the O_DIRECT flag, and either the address specified in ecx, the value specified in edx, or the current file offset is not suitably aligned. -or- The sum of the iov_len values overflows 0x7FFFFFFF. Or, the vector count edx is less than zero or greater than the permitted maximum.`
`-EIO` | `I/O error. This will happen for example when the process is in a background process group, tries to read from its controlling tty, and either it is ignoring or blocking SIGTTIN or its process group is orphaned. It may also occur when there is a low-level I/O error while reading from a disk or tape.`
`-EISDIR` | `ebx refers to a directory.`
Remarks n/a Compatibility n/a