[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: VFS query



Title: Message
 > What I want to know is that, from where does the kernel get the file object of the new  
> file system  ? or a pointer to the struct file_operations  of the new file system. 
 
take a look at real_lookup() in namei.c. All the operations come from the inode.
 struct inode_operations *i_op;
 struct file_operations *i_fop; /* former ->i_op->default_file_ops */
 
Understanding the Linux Kernel has a good write up on the VFS.

brian