LINUX块设备IO流程分析
1 Code Diagram
1.1 read
from | to | label |
---|---|---|
sys_read | vfs_read | |
vfs_read | rw_verify_area | |
rw_verify_area | __vfs_read | |
__vfs_read | file->f_op->read (e.g.: debugfs/file.c:read_file_blob) | Y |
new_sync_read | call_read_iter | |
call_read_iter | file->f_op->read_iter (e.g.: generic_file_read_iter) | |
generic_file_read_iter | iocb->flags & IOCB_DIRECT ? | Y |
filemap_write_and_wait_range | ||
do_generic_file_read |