fs synchronisation

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

 



hi
i went through  fs.h in the linux src tree.

there is the structure superblock_operations which pertains to the various superblock methods and associated structures.

there is a field like  sync_fs( struct super_block *sb, int wait ) and void write_inode( struct inode *inode, int wait ) .

i got wat it meant but the wait parameter is used to specify whether the operation should b synchronous or not.

how does it ensures synchronisation and with whom ?? ?

and second doubt is

the simple read() and write () functions call the system calls sys_read() and sys_write() system calls which then inturn call the relevant VFS methods to read and write from the file as implemented in low level by the respective fs.

my ques is when and how does sys_read() and sys_write() pass control to the VFS.???

TIA
plz correct me if i am wrong somewhere.

regards



--
play the game



[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