/linux-6.6.21/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 | 67 struct mempolicy *mpol; /* default memory policy for mappings */
|
D | sched.h | 54 struct mempolicy; 1253 struct mempolicy *mempolicy; member
|
D | mm_types.h | 657 struct mempolicy *vm_policy; /* NUMA policy for the VMA */
|
D | mm.h | 34 struct mempolicy; 609 int (*set_policy)(struct vm_area_struct *vma, struct mempolicy *new); 621 struct mempolicy *(*get_policy)(struct vm_area_struct *vma, 3227 struct file *, pgoff_t, struct mempolicy *, struct vm_userfaultfd_ctx,
|
/linux-6.6.21/mm/ |
D | mempolicy.c | 126 static struct mempolicy default_policy = { 131 static struct mempolicy preferred_node_policy[MAX_NUMNODES]; 165 struct mempolicy *get_task_policy(struct task_struct *p) in get_task_policy() 167 struct mempolicy *pol = p->mempolicy; in get_task_policy() 185 int (*create)(struct mempolicy *pol, const nodemask_t *nodes); 186 void (*rebind)(struct mempolicy *pol, const nodemask_t *nodes); 189 static inline int mpol_store_user_nodemask(const struct mempolicy *pol) in mpol_store_user_nodemask() 202 static int mpol_new_nodemask(struct mempolicy *pol, const nodemask_t *nodes) in mpol_new_nodemask() 210 static int mpol_new_preferred(struct mempolicy *pol, const nodemask_t *nodes) in mpol_new_preferred() 228 static int mpol_set_nodemask(struct mempolicy *pol, in mpol_set_nodemask() [all …]
|
D | Makefile | 79 obj-$(CONFIG_NUMA) += mempolicy.o
|
D | shmem.c | 115 struct mempolicy *mpol; 1553 static void shmem_show_mpol(struct seq_file *seq, struct mempolicy *mpol) in shmem_show_mpol() 1565 static struct mempolicy *shmem_get_sbmpol(struct shmem_sb_info *sbinfo) in shmem_get_sbmpol() 1567 struct mempolicy *mpol = NULL; in shmem_get_sbmpol() 1577 static inline void shmem_show_mpol(struct seq_file *seq, struct mempolicy *mpol) in shmem_show_mpol() 1580 static inline struct mempolicy *shmem_get_sbmpol(struct shmem_sb_info *sbinfo) in shmem_get_sbmpol() 2343 static int shmem_set_policy(struct vm_area_struct *vma, struct mempolicy *mpol) in shmem_set_policy() 2349 static struct mempolicy *shmem_get_policy(struct vm_area_struct *vma, in shmem_get_policy() 4123 struct mempolicy *mpol = NULL; in shmem_reconfigure() 4217 struct mempolicy *mpol; in shmem_show_options()
|
D | hugetlb.c | 1402 struct mempolicy *mpol; in dequeue_hugetlb_folio_vma() 2479 struct mempolicy *mpol; in alloc_buddy_hugetlb_folio_with_mpol() 2525 struct mempolicy *mpol; in alloc_hugetlb_folio_vma() 4552 struct mempolicy *mpol = get_task_policy(current); in policy_mbind_nodemask()
|
D | slab.c | 3035 else if (current->mempolicy) in alternate_node_alloc() 3171 if (current->mempolicy || cpuset_do_slab_mem_spread()) { in __do_cache_alloc()
|
D | mmap.c | 867 pgoff_t pgoff, struct mempolicy *policy, in vma_merge()
|
/linux-6.6.21/fs/proc/ |
D | internal.h | 18 struct mempolicy; 294 struct mempolicy *task_mempolicy;
|
D | task_mmu.c | 1948 struct mempolicy *pol; in show_numa_map()
|
/linux-6.6.21/Documentation/translations/zh_CN/core-api/ |
D | mm-api.rst | 117 mm/mempolicy.c
|
/linux-6.6.21/Documentation/admin-guide/mm/ |
D | numa_memory_policy.rst | 170 structure, struct mempolicy. Details of this structure will be 207 preferred_node member of struct mempolicy. When the internal 260 Without this flag, any time a mempolicy is rebound because of a 292 mempolicy is rebound because of a change in the set of allowed 312 if not already set, sets the node in the mempolicy nodemask. 338 To resolve use/free races, struct mempolicy contains an atomic reference 341 the structure back to the mempolicy kmem cache when the reference count 418 definitions are defined in <linux/mempolicy.h>. 469 mempolicy range. Other address ranges are ignored. A home node is the NUMA node
|
D | hugetlbpage.rst | 291 sysctl or attribute. When the ``nr_hugepages`` attribute is used, mempolicy 313 #. Regardless of mempolicy mode [see 316 specified in the mempolicy as if "interleave" had been specified. 332 Any of the other mempolicy modes may be used to specify a single node. 334 #. The nodes allowed mask will be derived from any non-default task mempolicy, 341 #. Any task mempolicy specified--e.g., using numactl--will be constrained by 373 resources exist, regardless of the task's mempolicy or cpuset constraints. 376 as we don't know until fault time, when the faulting task's mempolicy is
|
/linux-6.6.21/fs/kernfs/ |
D | file.c | 434 struct mempolicy *new) in kernfs_vma_set_policy() 454 static struct mempolicy *kernfs_vma_get_policy(struct vm_area_struct *vma, in kernfs_vma_get_policy() 459 struct mempolicy *pol; in kernfs_vma_get_policy()
|
/linux-6.6.21/Documentation/core-api/ |
D | mm-api.rst | 107 .. kernel-doc:: mm/mempolicy.c
|
/linux-6.6.21/kernel/ |
D | fork.c | 2432 p->mempolicy = mpol_dup(p->mempolicy); in copy_process() 2433 if (IS_ERR(p->mempolicy)) { in copy_process() 2434 retval = PTR_ERR(p->mempolicy); in copy_process() 2435 p->mempolicy = NULL; in copy_process() 2782 mpol_put(p->mempolicy); in copy_process()
|
/linux-6.6.21/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-6.6.21/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-6.6.21/Documentation/filesystems/ |
D | proc.rst | 1657 cpuset. If it is due to a mempolicy's node(s) being exhausted, the allowed 1658 memory represents the set of mempolicy nodes. If it is due to a memory 1674 same system, cpuset, mempolicy, or memory controller resources to use at least
|
/linux-6.6.21/Documentation/admin-guide/sysctl/ |
D | vm.rst | 813 However, if a process limits using nodes by mempolicy/cpusets,
|