핵심개념
This set of operations is the interface provided by the underlying file system to the VFS layer
- Actual functions are implemented in filesystem modules.
- Operation table are populated when the VFS object is loaded or initialized
- Operations should be filesystem type dependent
Object Methods
super_opeations
object: contains the methods that the kernel can invoke on a specific file system, such asread_inode()
andsync_fs()
.
inode_operatins
object: contains methods that the kernel can invoke on a specific file, such ascreate()
andlink()
.
dentry_operations
object: contain methods that the kernel can invoke on a specific directory entry, such asd_compare()
andd_delete()
.
file_operations
objet: contain methods that a process can invoke on an open file, such asread()
andwrite()
.