Scroll to navigation

GENERIC_FILE_AIO_REA(9) Memory Management in Linux GENERIC_FILE_AIO_REA(9)

NAME

generic_file_aio_read2 - generic filesystem read routine

SYNOPSIS

ssize_t generic_file_aio_read2(struct kiocb * iocb, const struct iovec * iov, unsigned long nr_segs, loff_t pos);

ARGUMENTS

iocb

kernel I/O control block

iov

io vector request

nr_segs

number of segments in the iovec

pos

current file position

DESCRIPTION

* RHEL7 internal-only functionality ** * Not to be exported, may break unmodified filesystems **

This routine is the same as generic_file_aio_read except on DIO it will check alignment and return -EINVAL or 0 in case of EOF. Use this over generic_file_aio_read in the case your file system is not able to handle AIO DIO read at or past i_size and you do not want to fall back to buffered read in this case. This is used by ext4 in RHEL7.

COPYRIGHT

June 2024 Kernel Hackers Manual 3.10