On Wed, 15 Mar 2000, Richard Henderson wrote:
>#define MADV_NORMAL 0 /* no further special treatment */
>#define MADV_RANDOM 1 /* expect random page references */
>#define MADV_SEQUENTIAL 2 /* expect sequential page references */
>#define MADV_WILLNEED 3 /* will need these pages */
>#define MADV_DONTNEED_COMPAT 4 /* for backward compatibility */
>#define MADV_SPACEAVAIL 5 /* ensure resources are available */
>#define MADV_DONTNEED 6 /* dont need these pages */
Thanks for the info.
So I think we need to make a new madvise syscall. The current one will be
renamed to sys_osf_madvise and it won't fail but it will return zero with
MAV_SPACEAVAIL and the ..._COMPAT used as behavoir, and a new linux one
that will jump in the common code.
For doing the osf-madvise we need to know the API of the osf syscall so if
possible we can wrap it and redirect the request to the common code
madvise syscall instead of returning zero unconditionally as we was used
to do previously.
Andrea