Am Mittwoch, 11. November 2009 18:58:32 schrieb Krishnakumar, Sudha:
> Folks,
> 
> Just want to make sure that calling shutdown, makes sure that unwritten
>  data in RAM gets written to disk.
> 
> Like if I am editing a file, and saved it, and lets say data is still not
>  written to disk.
> 
> Now if shutdown , how does the data in RAM gets written to disk, at this
>  point, is this taken care of by the block driver for the disk, or is it
>  taken care by linux kernel subsystem.
> 
> Please let me know.

This is split.
You are supposed to call sync() from user space. However, the kernel
will iterate through the device tree if you call reboot() and will call the
shutdown() method of the bus or the device.
The block drivers than still send commands to flush caches to the
drives.

        Regards
                Oliver

_______________________________________________
Moblin dev Mailing List
[email protected]

To manage or unsubscribe from this mailing list visit:
http://lists.moblin.org/listinfo/dev or your user account on http://moblin.org 
once logged in.

For more information on the Moblin Developer Mailing lists visit:
http://moblin.org/community/mailing-lists

Reply via email to