Home Man
Search
Today's Posts
Register

Linux & Unix Commands - Search Man Pages

Plan 9 - man page for segflush (plan9 section 2)

SEGFLUSH(2)			       System Calls Manual			      SEGFLUSH(2)

NAME
       segflush - flush instruction and data caches

SYNOPSIS
       #include <u.h>
       #include <libc.h>

       int  segflush(void *va, ulong len)

DESCRIPTION
       Segflush  invalidates any instruction cache and writes back any data 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.  Segflush works correctly when the memory straddles multiple
       segments.

       Correct use of segflush depends on an understanding of the cache architecture of the  spe-
       cific machine.

SOURCE
       /sys/src/libc/9syscall

SEE ALSO
       segattach(2), segbrk(2)
       /proc/*/segment

DIAGNOSTICS
       Sets errstr.

										      SEGFLUSH(2)


All times are GMT -4. The time now is 02:43 PM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
UNIX.COM Login
Username:
Password:  
Show Password