mempolicy
struct mempolicy;
struct mempolicy *task_mempolicy;
struct mempolicy *pol;
struct mempolicy;
struct mempolicy *mpol, pgoff_t ilx, int nid);
struct mempolicy *mpol, pgoff_t ilx, int nid)
extern bool __mpol_equal(struct mempolicy *a, struct mempolicy *b);
static inline bool mpol_equal(struct mempolicy *a, struct mempolicy *b)
struct mempolicy *policy;
void mpol_shared_policy_init(struct shared_policy *sp, struct mempolicy *mpol);
struct vm_area_struct *vma, struct mempolicy *mpol);
struct mempolicy *mpol_shared_policy_lookup(struct shared_policy *sp,
struct mempolicy *get_task_policy(struct task_struct *p);
struct mempolicy *__get_vma_policy(struct vm_area_struct *vma,
struct mempolicy *get_vma_policy(struct vm_area_struct *vma,
struct mempolicy **mpol, nodemask_t **nodemask);
extern int mpol_parse_str(char *str, struct mempolicy **mpol);
extern void mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol);
static inline bool mpol_is_preferred_many(struct mempolicy *pol)
extern bool apply_policy_zone(struct mempolicy *policy, enum zone_type zone);
static inline struct mempolicy *get_task_policy(struct task_struct *p)
static inline bool mpol_equal(struct mempolicy *a, struct mempolicy *b)
static inline void mpol_put(struct mempolicy *pol)
static inline void mpol_cond_put(struct mempolicy *pol)
static inline void mpol_get(struct mempolicy *pol)
struct mempolicy *mpol)
static inline struct mempolicy *
static inline struct mempolicy *get_vma_policy(struct vm_area_struct *vma,
struct mempolicy **mpol, nodemask_t **nodemask)
static inline int mpol_parse_str(char *str, struct mempolicy **mpol)
static inline bool mpol_is_preferred_many(struct mempolicy *pol)
extern void __mpol_put(struct mempolicy *pol);
static inline void mpol_put(struct mempolicy *pol)
static inline int mpol_needs_cond_ref(struct mempolicy *pol)
static inline void mpol_cond_put(struct mempolicy *pol)
extern struct mempolicy *__mpol_dup(struct mempolicy *pol);
static inline struct mempolicy *mpol_dup(struct mempolicy *pol)
static inline void mpol_get(struct mempolicy *pol)
struct mempolicy;
int (*set_policy)(struct vm_area_struct *vma, struct mempolicy *new);
struct mempolicy *(*get_policy)(struct vm_area_struct *vma,
struct mempolicy *vm_policy; /* NUMA policy for the VMA */
struct mempolicy *policy);
struct mempolicy *policy)
pgoff_t index, fgf_t fgf_flags, gfp_t gfp, struct mempolicy *policy);
struct mempolicy *mempolicy;
struct mempolicy;
struct mempolicy *mpol; /* default memory policy for mappings */
static int shm_set_policy(struct vm_area_struct *vma, struct mempolicy *mpol)
static struct mempolicy *shm_get_policy(struct vm_area_struct *vma,
struct mempolicy *mpol = vma->vm_policy;
p->mempolicy = mpol_dup(p->mempolicy);
if (IS_ERR(p->mempolicy)) {
retval = PTR_ERR(p->mempolicy);
p->mempolicy = NULL;
mpol_put(p->mempolicy);
struct mempolicy *mpol;
pgoff_t index, fgf_t fgp_flags, gfp_t gfp, struct mempolicy *policy)
struct mempolicy *policy)
struct mempolicy *mpol;
struct mempolicy *mpol;
struct mempolicy *mpol = get_task_policy(current);
struct mempolicy *mpol;
struct mempolicy *pol)
struct mempolicy *old;
struct mempolicy *new;
unsigned long end, struct mempolicy *new_pol)
struct mempolicy *new, *old;
old = current->mempolicy;
current->mempolicy = new;
static void get_policy_nodemask(struct mempolicy *pol, nodemask_t *nodes)
struct mempolicy *pol = current->mempolicy, *pol_refcount = NULL;
} else if (pol == current->mempolicy &&
} else if (pol == current->mempolicy &&
static struct mempolicy default_policy = {
static struct mempolicy preferred_node_policy[MAX_NUMNODES];
struct mempolicy *pol = mmpol->pol;
struct mempolicy *new;
struct mempolicy *new, *old;
struct mempolicy *__get_vma_policy(struct vm_area_struct *vma,
struct mempolicy *get_vma_policy(struct vm_area_struct *vma,
struct mempolicy *pol;
struct mempolicy *pol;
bool apply_policy_zone(struct mempolicy *policy, enum zone_type zone)
static unsigned int weighted_interleave_nodes(struct mempolicy *policy)
static unsigned int interleave_nodes(struct mempolicy *policy)
struct mempolicy *policy;
policy = current->mempolicy;
static unsigned int read_once_policy_nodemask(struct mempolicy *pol,
static unsigned int weighted_interleave_nid(struct mempolicy *pol, pgoff_t ilx)
static unsigned int interleave_nid(struct mempolicy *pol, pgoff_t ilx)
static nodemask_t *policy_nodemask(gfp_t gfp, struct mempolicy *pol,
struct mempolicy **mpol, nodemask_t **nodemask)
struct mempolicy *mempolicy;
if (!(mask && current->mempolicy))
mempolicy = current->mempolicy;
switch (mempolicy->mode) {
*mask = mempolicy->nodes;
struct mempolicy *mempolicy;
mempolicy = tsk->mempolicy;
if (mempolicy && mempolicy->mode == MPOL_BIND)
ret = nodes_intersects(mempolicy->nodes, *mask);
struct mempolicy *pol, pgoff_t ilx, int nid)
struct mempolicy *pol, pgoff_t ilx, int nid)
struct mempolicy *pol;
struct mempolicy *pol = &default_policy;
struct mempolicy *pol, unsigned long nr_pages,
struct mempolicy *pol, unsigned long nr_pages,
struct mempolicy *pol, unsigned long nr_pages,
struct mempolicy *pol = &default_policy;
struct mempolicy *pol = mpol_dup(src->vm_policy);
struct mempolicy *__mpol_dup(struct mempolicy *old)
struct mempolicy *new = kmem_cache_alloc(policy_cache, GFP_KERNEL);
if (old == current->mempolicy) {
bool __mpol_equal(struct mempolicy *a, struct mempolicy *b)
struct mempolicy *mpol_shared_policy_lookup(struct shared_policy *sp,
struct mempolicy *pol = NULL;
struct mempolicy *pol;
struct mempolicy *pol;
pol = task->mempolicy;
task->mempolicy = NULL;
unsigned long end, struct mempolicy *pol)
struct mempolicy *pol)
struct mempolicy *newpol;
struct mempolicy *mpol_new = NULL;
void mpol_shared_policy_init(struct shared_policy *sp, struct mempolicy *mpol)
struct mempolicy *npol;
struct vm_area_struct *vma, struct mempolicy *pol)
sizeof(struct mempolicy),
preferred_node_policy[nid] = (struct mempolicy) {
struct mempolicy *get_task_policy(struct task_struct *p)
int mpol_parse_str(char *str, struct mempolicy **mpol)
struct mempolicy *pol = p->mempolicy;
struct mempolicy *new = NULL;
void mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol)
int (*create)(struct mempolicy *pol, const nodemask_t *nodes);
void (*rebind)(struct mempolicy *pol, const nodemask_t *nodes);
static inline int mpol_store_user_nodemask(const struct mempolicy *pol)
static int mpol_new_nodemask(struct mempolicy *pol, const nodemask_t *nodes)
static int mpol_new_preferred(struct mempolicy *pol, const nodemask_t *nodes)
static int mpol_set_nodemask(struct mempolicy *pol,
static struct mempolicy *mpol_new(unsigned short mode, unsigned short flags,
struct mempolicy *policy;
void __mpol_put(struct mempolicy *pol)
static void mpol_rebind_default(struct mempolicy *pol, const nodemask_t *nodes)
static void mpol_rebind_nodemask(struct mempolicy *pol, const nodemask_t *nodes)
static void mpol_rebind_preferred(struct mempolicy *pol,
static void mpol_rebind_policy(struct mempolicy *pol, const nodemask_t *newmask)
mpol_rebind_policy(tsk->mempolicy, new);
static nodemask_t *policy_nodemask(gfp_t gfp, struct mempolicy *pol,
struct mempolicy *pol;
struct mempolicy *mpol;
static void shmem_show_mpol(struct seq_file *seq, struct mempolicy *mpol)
static struct mempolicy *shmem_get_sbmpol(struct shmem_sb_info *sbinfo)
struct mempolicy *mpol = NULL;
static inline void shmem_show_mpol(struct seq_file *seq, struct mempolicy *mpol)
static inline struct mempolicy *shmem_get_sbmpol(struct shmem_sb_info *sbinfo)
static struct mempolicy *shmem_get_pgoff_policy(struct shmem_inode_info *info,
struct mempolicy *mpol;
struct mempolicy *mpol;
static int shmem_set_policy(struct vm_area_struct *vma, struct mempolicy *mpol)
static struct mempolicy *shmem_get_policy(struct vm_area_struct *vma,
static struct mempolicy *shmem_get_pgoff_policy(struct shmem_inode_info *info,
struct mempolicy *mpol;
static struct mempolicy *shmem_get_pgoff_policy(struct shmem_inode_info *info,
struct mempolicy *mpol = NULL;
struct mempolicy *mpol;
struct mempolicy *mpol = current->mempolicy;
struct mempolicy *mpol = current->mempolicy;
struct mempolicy *mpol, pgoff_t ilx,
struct mempolicy *mpol, pgoff_t ilx);
gfp_t gfp_mask, struct mempolicy *mpol, pgoff_t ilx)
struct mempolicy;
struct mempolicy *mpol, pgoff_t ilx,
struct mempolicy *mpol;
struct mempolicy *mpol, pgoff_t ilx)
struct mempolicy *mpol, pgoff_t targ_ilx, struct vm_fault *vmf)
struct mempolicy *mpol;
struct mempolicy *new_pol)
struct mempolicy *policy;
struct mempolicy *new_pol);
struct mempolicy *mpol;
struct mempolicy *vm_policy; /* NUMA policy for the VMA */
int (*set_policy)(struct vm_area_struct *vma, struct mempolicy *new);
struct mempolicy *(*get_policy)(struct vm_area_struct *vma,
static inline bool mpol_equal(struct mempolicy *a, struct mempolicy *b)
static inline void mpol_put(struct mempolicy *pol)
struct mempolicy *policy;
static int kvm_gmem_set_policy(struct vm_area_struct *vma, struct mempolicy *mpol)
static struct mempolicy *kvm_gmem_get_policy(struct vm_area_struct *vma,