SEGFLUSH(2)                                           SEGFLUSH(2)
     NAME
          segflush - flush segment memory cache
     SYNOPSIS
          int  segflush(void *va, ulong len)
     DESCRIPTION
          Segflush flushes the instruction cache associated with pages
          contained in a segment.  All subsequent new pages in the
          segment will also be flushed when first referenced.
          Va is an address within the segment to be flushed; it is
          rounded down to the nearest page boundary.  Len specifies
          the length in bytes of the memory to flush; va+len is
          rounded up to the nearest page boundary.
     SEE ALSO
          segattach(2), segbrk(2)
          /proc/*/segment
     DIAGNOSTICS
          Sets errstr.
     Page 1                       Plan 9             (printed 11/4/25)