Home
last modified time | relevance | path

Searched refs:mempolicy (Results 1 – 25 of 25) sorted by relevance

/linux-4.1.27/include/linux/
Dmempolicy.h43 struct mempolicy { struct
63 extern void __mpol_put(struct mempolicy *pol);
64 static inline void mpol_put(struct mempolicy *pol) in mpol_put()
74 static inline int mpol_needs_cond_ref(struct mempolicy *pol) in mpol_needs_cond_ref()
79 static inline void mpol_cond_put(struct mempolicy *pol) in mpol_cond_put()
85 extern struct mempolicy *__mpol_dup(struct mempolicy *pol);
86 static inline struct mempolicy *mpol_dup(struct mempolicy *pol) in mpol_dup()
95 static inline void mpol_get(struct mempolicy *pol) in mpol_get()
101 extern bool __mpol_equal(struct mempolicy *a, struct mempolicy *b);
102 static inline bool mpol_equal(struct mempolicy *a, struct mempolicy *b) in mpol_equal()
[all …]
Dshmem_fs.h37 struct mempolicy *mpol; /* default memory policy for mappings */
Dmm_types.h305 struct mempolicy *vm_policy; /* NUMA policy for the VMA */
Dmm.h24 struct mempolicy;
276 int (*set_policy)(struct vm_area_struct *vma, struct mempolicy *new);
288 struct mempolicy *(*get_policy)(struct vm_area_struct *vma,
1829 struct mempolicy *);
Dsched.h1110 struct mempolicy;
1606 struct mempolicy *mempolicy; /* Protected by alloc_lock */ member
/linux-4.1.27/mm/
Dmempolicy.c118 static struct mempolicy default_policy = {
124 static struct mempolicy preferred_node_policy[MAX_NUMNODES];
126 struct mempolicy *get_task_policy(struct task_struct *p) in get_task_policy()
128 struct mempolicy *pol = p->mempolicy; in get_task_policy()
146 int (*create)(struct mempolicy *pol, const nodemask_t *nodes);
161 void (*rebind)(struct mempolicy *pol, const nodemask_t *nodes,
165 static inline int mpol_store_user_nodemask(const struct mempolicy *pol) in mpol_store_user_nodemask()
178 static int mpol_new_interleave(struct mempolicy *pol, const nodemask_t *nodes) in mpol_new_interleave()
186 static int mpol_new_preferred(struct mempolicy *pol, const nodemask_t *nodes) in mpol_new_preferred()
197 static int mpol_new_bind(struct mempolicy *pol, const nodemask_t *nodes) in mpol_new_bind()
[all …]
DMakefile45 obj-$(CONFIG_NUMA) += mempolicy.o
Dshmem.c849 static void shmem_show_mpol(struct seq_file *seq, struct mempolicy *mpol) in shmem_show_mpol()
861 static struct mempolicy *shmem_get_sbmpol(struct shmem_sb_info *sbinfo) in shmem_get_sbmpol()
863 struct mempolicy *mpol = NULL; in shmem_get_sbmpol()
917 static inline void shmem_show_mpol(struct seq_file *seq, struct mempolicy *mpol) in shmem_show_mpol()
936 static inline struct mempolicy *shmem_get_sbmpol(struct shmem_sb_info *sbinfo) in shmem_get_sbmpol()
1349 static int shmem_set_policy(struct vm_area_struct *vma, struct mempolicy *mpol) in shmem_set_policy()
1355 static struct mempolicy *shmem_get_policy(struct vm_area_struct *vma, in shmem_get_policy()
2742 struct mempolicy *mpol = NULL; in shmem_parse_options()
Dslab.c2996 else if (current->mempolicy) in alternate_node_alloc()
3215 if (current->mempolicy || cpuset_do_slab_mem_spread()) { in __do_cache_alloc()
Dmmap.c1036 pgoff_t pgoff, struct mempolicy *policy) in vma_merge()
Dhugetlb.c632 struct mempolicy *mpol; in dequeue_huge_page_vma()
/linux-4.1.27/fs/proc/
Dinternal.h19 struct mempolicy;
286 struct mempolicy *task_mempolicy;
Dtask_mmu.c1490 struct mempolicy *pol; in show_numa_map()
/linux-4.1.27/Documentation/vm/
Dhugetlbpage.txt174 sysctl or attribute. When the nr_hugepages attribute is used, mempolicy
196 1) Regardless of mempolicy mode [see Documentation/vm/numa_memory_policy.txt],
198 specified in the mempolicy as if "interleave" had been specified.
214 Any of the other mempolicy modes may be used to specify a single node.
216 3) The nodes allowed mask will be derived from any non-default task mempolicy,
223 4) Any task mempolicy specifed--e.g., using numactl--will be constrained by
255 resources exist, regardless of the task's mempolicy or cpuset constraints.
258 as we don't know until fault time, when the faulting task's mempolicy is
Dnuma_memory_policy.txt146 structure, struct mempolicy. Details of this structure will be discussed
179 preferred_node member of struct mempolicy. When the internal
221 Without this flag, anytime a mempolicy is rebound because of a
252 mempolicy is rebound because of a change in the set of allowed
272 if not already set, sets the node in the mempolicy nodemask.
297 To resolve use/free races, struct mempolicy contains an atomic reference
300 the structure back to the mempolicy kmem cache when the reference count
373 definitions are defined in <linux/mempolicy.h>.
/linux-4.1.27/fs/kernfs/
Dfile.c411 struct mempolicy *new) in kernfs_vma_set_policy()
431 static struct mempolicy *kernfs_vma_get_policy(struct vm_area_struct *vma, in kernfs_vma_get_policy()
436 struct mempolicy *pol; in kernfs_vma_get_policy()
/linux-4.1.27/kernel/
Dfork.c1372 p->mempolicy = mpol_dup(p->mempolicy); in copy_process()
1373 if (IS_ERR(p->mempolicy)) { in copy_process()
1374 retval = PTR_ERR(p->mempolicy); in copy_process()
1375 p->mempolicy = NULL; in copy_process()
1634 mpol_put(p->mempolicy); in copy_process()
Dexit.c769 mpol_put(tsk->mempolicy); in do_exit()
770 tsk->mempolicy = NULL; in do_exit()
Dcpuset.c154 return task->mempolicy; in task_has_mempolicy()
/linux-4.1.27/kernel/sched/
Ddebug.c523 struct mempolicy *pol; in sched_show_numa()
530 pol = p->mempolicy; in sched_show_numa()
/linux-4.1.27/ipc/
Dshm.c385 static int shm_set_policy(struct vm_area_struct *vma, struct mempolicy *new) in shm_set_policy()
395 static struct mempolicy *shm_get_policy(struct vm_area_struct *vma, in shm_get_policy()
400 struct mempolicy *pol = NULL; in shm_get_policy()
/linux-4.1.27/Documentation/cgroups/
Dcpusets.txt326 except perhaps as modified by the task's NUMA mempolicy or cpuset
333 or slab caches to ignore the task's NUMA mempolicy and be spread
337 is turned off, then the currently specified NUMA mempolicy once again
605 mempolicy MPOL_BIND, and the nodes to which it was bound overlap with
/linux-4.1.27/include/uapi/linux/
DKbuild254 header-y += mempolicy.h
/linux-4.1.27/Documentation/filesystems/
Dproc.txt1441 cpuset. If it is due to a mempolicy's node(s) being exhausted, the allowed
1442 memory represents the set of mempolicy nodes. If it is due to a memory
1458 same system, cpuset, mempolicy, or memory controller resources to use at least
/linux-4.1.27/Documentation/sysctl/
Dvm.txt685 However, if a process limits using nodes by mempolicy/cpusets,