/Linux-v6.1/include/linux/ |
D | mempolicy.h | 44 struct mempolicy { struct 62 extern void __mpol_put(struct mempolicy *pol); 63 static inline void mpol_put(struct mempolicy *pol) in mpol_put() 73 static inline int mpol_needs_cond_ref(struct mempolicy *pol) in mpol_needs_cond_ref() 78 static inline void mpol_cond_put(struct mempolicy *pol) in mpol_cond_put() 84 extern struct mempolicy *__mpol_dup(struct mempolicy *pol); 85 static inline struct mempolicy *mpol_dup(struct mempolicy *pol) in mpol_dup() 94 static inline void mpol_get(struct mempolicy *pol) in mpol_get() 100 extern bool __mpol_equal(struct mempolicy *a, struct mempolicy *b); 101 static inline bool mpol_equal(struct mempolicy *a, struct mempolicy *b) in mpol_equal() [all …]
|
D | shmem_fs.h | 50 struct mempolicy *mpol; /* default memory policy for mappings */
|
D | sched.h | 54 struct mempolicy; 1255 struct mempolicy *mempolicy; member
|
D | mm_types.h | 506 struct mempolicy *vm_policy; /* NUMA policy for the VMA */
|
D | mm.h | 33 struct mempolicy; 590 int (*set_policy)(struct vm_area_struct *vma, struct mempolicy *new); 602 struct mempolicy *(*get_policy)(struct vm_area_struct *vma, 2689 struct mempolicy *, struct vm_userfaultfd_ctx, struct anon_vma_name *);
|
/Linux-v6.1/mm/ |
D | mempolicy.c | 126 static struct mempolicy default_policy = { 131 static struct mempolicy preferred_node_policy[MAX_NUMNODES]; 161 struct mempolicy *get_task_policy(struct task_struct *p) in get_task_policy() 163 struct mempolicy *pol = p->mempolicy; in get_task_policy() 181 int (*create)(struct mempolicy *pol, const nodemask_t *nodes); 182 void (*rebind)(struct mempolicy *pol, const nodemask_t *nodes); 185 static inline int mpol_store_user_nodemask(const struct mempolicy *pol) in mpol_store_user_nodemask() 198 static int mpol_new_nodemask(struct mempolicy *pol, const nodemask_t *nodes) in mpol_new_nodemask() 206 static int mpol_new_preferred(struct mempolicy *pol, const nodemask_t *nodes) in mpol_new_preferred() 224 static int mpol_set_nodemask(struct mempolicy *pol, in mpol_set_nodemask() [all …]
|
D | Makefile | 81 obj-$(CONFIG_NUMA) += mempolicy.o
|
D | shmem.c | 112 struct mempolicy *mpol; 1450 static void shmem_show_mpol(struct seq_file *seq, struct mempolicy *mpol) in shmem_show_mpol() 1462 static struct mempolicy *shmem_get_sbmpol(struct shmem_sb_info *sbinfo) in shmem_get_sbmpol() 1464 struct mempolicy *mpol = NULL; in shmem_get_sbmpol() 1474 static inline void shmem_show_mpol(struct seq_file *seq, struct mempolicy *mpol) in shmem_show_mpol() 1477 static inline struct mempolicy *shmem_get_sbmpol(struct shmem_sb_info *sbinfo) in shmem_get_sbmpol() 2238 static int shmem_set_policy(struct vm_area_struct *vma, struct mempolicy *mpol) in shmem_set_policy() 2244 static struct mempolicy *shmem_get_policy(struct vm_area_struct *vma, in shmem_get_policy() 3626 struct mempolicy *mpol = NULL; in shmem_reconfigure()
|
D | hugetlb.c | 1214 struct mempolicy *mpol; in dequeue_huge_page_vma() 2302 struct mempolicy *mpol; in alloc_buddy_huge_page_with_mpol() 2347 struct mempolicy *mpol; in alloc_huge_page_vma() 4361 struct mempolicy *mpol = get_task_policy(current); in policy_mbind_nodemask()
|
D | slab.c | 3055 else if (current->mempolicy) in alternate_node_alloc() 3191 if (current->mempolicy || cpuset_do_slab_mem_spread()) { in __do_cache_alloc()
|
D | mmap.c | 1003 pgoff_t pgoff, struct mempolicy *policy, in vma_merge()
|
/Linux-v6.1/fs/proc/ |
D | internal.h | 18 struct mempolicy; 296 struct mempolicy *task_mempolicy;
|
D | task_mmu.c | 1939 struct mempolicy *pol; in show_numa_map()
|
/Linux-v6.1/Documentation/translations/zh_CN/core-api/ |
D | mm-api.rst | 117 mm/mempolicy.c
|
/Linux-v6.1/Documentation/admin-guide/mm/ |
D | numa_memory_policy.rst | 172 structure, struct mempolicy. Details of this structure will be 209 preferred_node member of struct mempolicy. When the internal 262 Without this flag, any time a mempolicy is rebound because of a 294 mempolicy is rebound because of a change in the set of allowed 314 if not already set, sets the node in the mempolicy nodemask. 340 To resolve use/free races, struct mempolicy contains an atomic reference 343 the structure back to the mempolicy kmem cache when the reference count 420 definitions are defined in <linux/mempolicy.h>. 471 mempolicy range. Other address ranges are ignored. A home node is the NUMA node
|
D | hugetlbpage.rst | 293 sysctl or attribute. When the ``nr_hugepages`` attribute is used, mempolicy 315 #. Regardless of mempolicy mode [see 318 specified in the mempolicy as if "interleave" had been specified. 334 Any of the other mempolicy modes may be used to specify a single node. 336 #. The nodes allowed mask will be derived from any non-default task mempolicy, 343 #. Any task mempolicy specified--e.g., using numactl--will be constrained by 375 resources exist, regardless of the task's mempolicy or cpuset constraints. 378 as we don't know until fault time, when the faulting task's mempolicy is
|
/Linux-v6.1/Documentation/core-api/ |
D | mm-api.rst | 107 .. kernel-doc:: mm/mempolicy.c
|
/Linux-v6.1/fs/kernfs/ |
D | file.c | 430 struct mempolicy *new) in kernfs_vma_set_policy() 450 static struct mempolicy *kernfs_vma_get_policy(struct vm_area_struct *vma, in kernfs_vma_get_policy() 455 struct mempolicy *pol; in kernfs_vma_get_policy()
|
/Linux-v6.1/kernel/ |
D | fork.c | 2184 p->mempolicy = mpol_dup(p->mempolicy); in copy_process() 2185 if (IS_ERR(p->mempolicy)) { in copy_process() 2186 retval = PTR_ERR(p->mempolicy); in copy_process() 2187 p->mempolicy = NULL; in copy_process() 2540 mpol_put(p->mempolicy); in copy_process()
|
/Linux-v6.1/ipc/ |
D | shm.c | 565 static int shm_set_policy(struct vm_area_struct *vma, struct mempolicy *new) in shm_set_policy() 576 static struct mempolicy *shm_get_policy(struct vm_area_struct *vma, in shm_get_policy() 581 struct mempolicy *pol = NULL; in shm_get_policy()
|
/Linux-v6.1/Documentation/admin-guide/cgroup-v1/ |
D | cpusets.rst | 342 except perhaps as modified by the task's NUMA mempolicy or cpuset 349 or slab caches to ignore the task's NUMA mempolicy and be spread 353 is turned off, then the currently specified NUMA mempolicy once again 626 mempolicy MPOL_BIND, and the nodes to which it was bound overlap with
|
/Linux-v6.1/Documentation/filesystems/ |
D | proc.rst | 1635 cpuset. If it is due to a mempolicy's node(s) being exhausted, the allowed 1636 memory represents the set of mempolicy nodes. If it is due to a memory 1652 same system, cpuset, mempolicy, or memory controller resources to use at least
|
/Linux-v6.1/Documentation/admin-guide/sysctl/ |
D | vm.rst | 813 However, if a process limits using nodes by mempolicy/cpusets,
|