GRASS Programmer's Manual  6.4.3(2013)-r
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
flush.c
Go to the documentation of this file.
1 
15 #include <grass/segment.h>
16 
17 
32 int segment_flush(SEGMENT * SEG)
33 {
34  int i;
35 
36  for (i = 0; i < SEG->nseg; i++)
37  if (SEG->scb[i].n >= 0 && SEG->scb[i].dirty)
38  segment_pageout(SEG, i);
39 
40  return 0;
41 }