


SYNC(8)		Linux Programmer's Manual		SYNC(8)


NNAAMMEE
       sync - flush Linux filesystem buffers

SSYYNNOOPPSSIISS
       ssyynncc

DDEESSCCRRIIPPTTIIOONN
       ssyynncc   executes	ssyynncc(2),  which	flushes  the  filesystem
       buffers to disk.	ssyynncc should be called before the proces-
       sor is halted in an unusual manner (i.e., before causing a
       kernel panic when debugging new kernel code).  In general,
       the  processor  should  be  halted using the rreebboooott(8), or
       hhaalltt(8) commands, which will attempt to put the system  in
       a quiescent state before calling ssyynncc(2).

       From Linus: "Note that ssyynncc is only guaranteed to schedule
       the dirty blocks for writing: it can actually take a short
       time  before  all  the blocks are finally written.  If you
       are doing the ssyynncc with the  expectation	of  killing  the
       machine	soon  after,  please  take  this into account and
       sleep for a few seconds.	[The	rreebboooott(8)  command  takes
       these precautions.]

SSEEEE AALLSSOO
       ssyynncc(2), uuppddaattee(8), rreebboooott(8), hhaalltt(8)

AAUUTTHHOORR
       Linus Torvalds (torvalds@cs.helsinki.fi)





























Linux 0.98		1 February 1993			1


