GRASS Programmer's Manual  6.4.2(2012)
flush.c
Go to the documentation of this file.
00001 
00015 #include <grass/segment.h>
00016 
00017 
00032 int segment_flush(SEGMENT * SEG)
00033 {
00034     int i;
00035 
00036     for (i = 0; i < SEG->nseg; i++)
00037         if (SEG->scb[i].n >= 0 && SEG->scb[i].dirty)
00038             segment_pageout(SEG, i);
00039 
00040     return 0;
00041 }
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines