我正在尝试了解 Linux 如何处理 EXT3 文件。我正在查看fs/ext3/file.c
存在处理文件的文件操作的位置:
const struct file_operations ext3_file_operations = {
.llseek = generic_file_llseek,
.read = do_sync_read,
.write = do_sync_write,
.aio_read = generic_file_aio_read,
.aio_write = generic_file_aio_write,
.unlocked_ioctl = ext3_ioctl,
#ifdef CONFIG_COMPAT
.compat_ioctl = ext3_compat_ioctl,
#endif
.mmap = generic_file_mmap,
.open = dquot_file_open,
.release = ext3_release_file,
.fsync = ext3_sync_file,
.splice_read = generic_file_splice_read,
.splice_write = generic_file_splice_write,
};
例如,我怎样才能找到 .open 何时被函数“dquot_file_open”替换?我应该遵循以下定义的系统调用fs/open.c
:
SYSCALL_DEFINE3(open, const char __user *, filename, int, flags, umode_t, mode)
还是我应该看看其他功能?
我正在为用户模式 Linux 开发 Linux 3.7.6