Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/linux
File: mempolicy.h
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
[0] Fix | Delete
/*
[1] Fix | Delete
* NUMA memory policies for Linux.
[2] Fix | Delete
* Copyright 2003,2004 Andi Kleen SuSE Labs
[3] Fix | Delete
*/
[4] Fix | Delete
#ifndef _LINUX_MEMPOLICY_H
[5] Fix | Delete
#define _LINUX_MEMPOLICY_H
[6] Fix | Delete
[7] Fix | Delete
#include <linux/errno.h>
[8] Fix | Delete
[9] Fix | Delete
[10] Fix | Delete
/*
[11] Fix | Delete
* Both the MPOL_* mempolicy mode and the MPOL_F_* optional mode flags are
[12] Fix | Delete
* passed by the user to either set_mempolicy() or mbind() in an 'int' actual.
[13] Fix | Delete
* The MPOL_MODE_FLAGS macro determines the legal set of optional mode flags.
[14] Fix | Delete
*/
[15] Fix | Delete
[16] Fix | Delete
/* Policies */
[17] Fix | Delete
enum {
[18] Fix | Delete
MPOL_DEFAULT,
[19] Fix | Delete
MPOL_PREFERRED,
[20] Fix | Delete
MPOL_BIND,
[21] Fix | Delete
MPOL_INTERLEAVE,
[22] Fix | Delete
MPOL_LOCAL,
[23] Fix | Delete
MPOL_PREFERRED_MANY,
[24] Fix | Delete
MPOL_MAX, /* always last member of enum */
[25] Fix | Delete
};
[26] Fix | Delete
[27] Fix | Delete
/* Flags for set_mempolicy */
[28] Fix | Delete
#define MPOL_F_STATIC_NODES (1 << 15)
[29] Fix | Delete
#define MPOL_F_RELATIVE_NODES (1 << 14)
[30] Fix | Delete
#define MPOL_F_NUMA_BALANCING (1 << 13) /* Optimize with NUMA balancing if possible */
[31] Fix | Delete
[32] Fix | Delete
/*
[33] Fix | Delete
* MPOL_MODE_FLAGS is the union of all possible optional mode flags passed to
[34] Fix | Delete
* either set_mempolicy() or mbind().
[35] Fix | Delete
*/
[36] Fix | Delete
#define MPOL_MODE_FLAGS \
[37] Fix | Delete
(MPOL_F_STATIC_NODES | MPOL_F_RELATIVE_NODES | MPOL_F_NUMA_BALANCING)
[38] Fix | Delete
[39] Fix | Delete
/* Flags for get_mempolicy */
[40] Fix | Delete
#define MPOL_F_NODE (1<<0) /* return next IL mode instead of node mask */
[41] Fix | Delete
#define MPOL_F_ADDR (1<<1) /* look up vma using address */
[42] Fix | Delete
#define MPOL_F_MEMS_ALLOWED (1<<2) /* return allowed memories */
[43] Fix | Delete
[44] Fix | Delete
/* Flags for mbind */
[45] Fix | Delete
#define MPOL_MF_STRICT (1<<0) /* Verify existing pages in the mapping */
[46] Fix | Delete
#define MPOL_MF_MOVE (1<<1) /* Move pages owned by this process to conform
[47] Fix | Delete
to policy */
[48] Fix | Delete
#define MPOL_MF_MOVE_ALL (1<<2) /* Move every page to conform to policy */
[49] Fix | Delete
#define MPOL_MF_LAZY (1<<3) /* Modifies '_MOVE: lazy migrate on fault */
[50] Fix | Delete
#define MPOL_MF_INTERNAL (1<<4) /* Internal flags start here */
[51] Fix | Delete
[52] Fix | Delete
#define MPOL_MF_VALID (MPOL_MF_STRICT | \
[53] Fix | Delete
MPOL_MF_MOVE | \
[54] Fix | Delete
MPOL_MF_MOVE_ALL)
[55] Fix | Delete
[56] Fix | Delete
/*
[57] Fix | Delete
* Internal flags that share the struct mempolicy flags word with
[58] Fix | Delete
* "mode flags". These flags are allocated from bit 0 up, as they
[59] Fix | Delete
* are never OR'ed into the mode in mempolicy API arguments.
[60] Fix | Delete
*/
[61] Fix | Delete
#define MPOL_F_SHARED (1 << 0) /* identify shared policies */
[62] Fix | Delete
#define MPOL_F_MOF (1 << 3) /* this policy wants migrate on fault */
[63] Fix | Delete
#define MPOL_F_MORON (1 << 4) /* Migrate On protnone Reference On Node */
[64] Fix | Delete
[65] Fix | Delete
[66] Fix | Delete
#endif /* _LINUX_MEMPOLICY_H */
[67] Fix | Delete
[68] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function