2-file_operation_structs_in_ext2

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

 



Hi,
>From the code its very clear that below
is for files of dirctory types in dir.c
struct file_operations ext2_dir_operations = {
        read:           generic_read_dir,
        readdir:        ext2_readdir,
        ioctl:          ext2_ioctl,
        fsync:          ext2_sync_file,
};
and follows are related to file all are of vfs itself
struct file_operations ext2_file_operations = {
        llseek:         generic_file_llseek,
        read:           generic_file_read,
        write:          generic_file_write,
        ioctl:          ext2_ioctl,
        mmap:           generic_file_mmap,
        open:           generic_file_open,
        release:        ext2_release_file,
        fsync:          ext2_sync_file,
};
Its bit confusing for me ,but are they are attched to 
files depending on whaether they are directory or
reguler file ?
Or some other separate interpretation of these two
are there.
I hope my question is clear.
Thanks
Prasanna
 


	
		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux