linux/fs/read-write.c
Imported from
_research/manual-study-linux/file-notes/linux__fs__read_write.c.md.
File Notes: fs/read_write.c
Status: reviewed.
Purpose: read/write syscall path and file operation dispatch.
Evidence
rw_verify_area()at line 453 checks request boundaries before dispatch.new_sync_read()at line 483 andnew_sync_write()at line 585 adapt common synchronous file operations.vfs_read()at line 554 andvfs_write()at line 667 are the generic VFS dispatch points.ksys_read()appears at line 705, followed bySYSCALL_DEFINE3(read)at line 723.ksys_write()appears at line 728, followed bySYSCALL_DEFINE3(write)at line 747.
Design Notes
The syscall wrappers do not know every file implementation. They validate the request and dispatch through file operations. Rust should mirror this with a small syscall/handle layer and trait-backed object behavior.