|
@@ -757,6 +757,9 @@ madvise_behavior_valid(int behavior)
|
|
* MADV_DONTFORK - omit this area from child's address space when forking:
|
|
* MADV_DONTFORK - omit this area from child's address space when forking:
|
|
* typically, to avoid COWing pages pinned by get_user_pages().
|
|
* typically, to avoid COWing pages pinned by get_user_pages().
|
|
* MADV_DOFORK - cancel MADV_DONTFORK: no longer omit this area when forking.
|
|
* MADV_DOFORK - cancel MADV_DONTFORK: no longer omit this area when forking.
|
|
|
|
+ * MADV_WIPEONFORK - present the child process with zero-filled memory in this
|
|
|
|
+ * range after a fork.
|
|
|
|
+ * MADV_KEEPONFORK - undo the effect of MADV_WIPEONFORK
|
|
* MADV_HWPOISON - trigger memory error handler as if the given memory range
|
|
* MADV_HWPOISON - trigger memory error handler as if the given memory range
|
|
* were corrupted by unrecoverable hardware memory failure.
|
|
* were corrupted by unrecoverable hardware memory failure.
|
|
* MADV_SOFT_OFFLINE - try to soft-offline the given range of memory.
|
|
* MADV_SOFT_OFFLINE - try to soft-offline the given range of memory.
|
|
@@ -777,7 +780,9 @@ madvise_behavior_valid(int behavior)
|
|
* zero - success
|
|
* zero - success
|
|
* -EINVAL - start + len < 0, start is not page-aligned,
|
|
* -EINVAL - start + len < 0, start is not page-aligned,
|
|
* "behavior" is not a valid value, or application
|
|
* "behavior" is not a valid value, or application
|
|
- * is attempting to release locked or shared pages.
|
|
|
|
|
|
+ * is attempting to release locked or shared pages,
|
|
|
|
+ * or the specified address range includes file, Huge TLB,
|
|
|
|
+ * MAP_SHARED or VMPFNMAP range.
|
|
* -ENOMEM - addresses in the specified range are not currently
|
|
* -ENOMEM - addresses in the specified range are not currently
|
|
* mapped, or are outside the AS of the process.
|
|
* mapped, or are outside the AS of the process.
|
|
* -EIO - an I/O error occurred while paging in data.
|
|
* -EIO - an I/O error occurred while paging in data.
|