Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 #ifndef FADVISE_H_INCLUDED
0003 #define FADVISE_H_INCLUDED
0004 
0005 #define POSIX_FADV_NORMAL   0 /* No further special treatment.  */
0006 #define POSIX_FADV_RANDOM   1 /* Expect random page references.  */
0007 #define POSIX_FADV_SEQUENTIAL   2 /* Expect sequential page references.  */
0008 #define POSIX_FADV_WILLNEED 3 /* Will need these pages.  */
0009 
0010 /*
0011  * The advise values for POSIX_FADV_DONTNEED and POSIX_ADV_NOREUSE
0012  * for s390-64 differ from the values for the rest of the world.
0013  */
0014 #if defined(__s390x__)
0015 #define POSIX_FADV_DONTNEED 6 /* Don't need these pages.  */
0016 #define POSIX_FADV_NOREUSE  7 /* Data will be accessed once.  */
0017 #else
0018 #define POSIX_FADV_DONTNEED 4 /* Don't need these pages.  */
0019 #define POSIX_FADV_NOREUSE  5 /* Data will be accessed once.  */
0020 #endif
0021 
0022 #endif  /* FADVISE_H_INCLUDED */