/linux-6.3-rc2/include/linux/ |
A D | mempolicy.h | 44 struct mempolicy { struct 84 extern struct mempolicy *__mpol_dup(struct mempolicy *pol); 85 static inline struct mempolicy *mpol_dup(struct mempolicy *pol) in mpol_dup() 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() 119 struct mempolicy *policy; 131 struct mempolicy *new); 189 struct mempolicy {}; struct 191 static inline bool mpol_equal(struct mempolicy *a, struct mempolicy *b) in mpol_equal() 211 struct mempolicy *mpol) in mpol_shared_policy_init() [all …]
|
A D | shmem_fs.h | 50 struct mempolicy *mpol; /* default memory policy for mappings */
|
A D | sched.h | 54 struct mempolicy; 1249 struct mempolicy *mempolicy; member
|
A D | mm_types.h | 548 struct mempolicy *vm_policy; /* NUMA policy for the VMA */
|
A D | mm.h | 33 struct mempolicy; 602 int (*set_policy)(struct vm_area_struct *vma, struct mempolicy *new); 614 struct mempolicy *(*get_policy)(struct vm_area_struct *vma, 2949 struct file *, pgoff_t, struct mempolicy *, struct vm_userfaultfd_ctx,
|
/linux-6.3-rc2/mm/ |
A D | mempolicy.c | 163 struct mempolicy *pol = p->mempolicy; in get_task_policy() 765 struct mempolicy *old; in vma_replace_policy() 933 struct mempolicy *pol = current->mempolicy, *pol_refcount = NULL; in do_get_mempolicy() 2053 struct mempolicy *mempolicy; in init_nodemask_of_mempolicy() local 2059 mempolicy = current->mempolicy; in init_nodemask_of_mempolicy() 2094 struct mempolicy *mempolicy; in mempolicy_in_oom_domain() local 2101 mempolicy = tsk->mempolicy; in mempolicy_in_oom_domain() 2102 if (mempolicy && mempolicy->mode == MPOL_BIND) in mempolicy_in_oom_domain() 2405 struct mempolicy *__mpol_dup(struct mempolicy *old) in __mpol_dup() 2429 bool __mpol_equal(struct mempolicy *a, struct mempolicy *b) in __mpol_equal() [all …]
|
A D | Makefile | 81 obj-$(CONFIG_NUMA) += mempolicy.o
|
A D | shmem.c | 112 struct mempolicy *mpol; 1452 static void shmem_show_mpol(struct seq_file *seq, struct mempolicy *mpol) in shmem_show_mpol() 1464 static struct mempolicy *shmem_get_sbmpol(struct shmem_sb_info *sbinfo) in shmem_get_sbmpol() 1466 struct mempolicy *mpol = NULL; in shmem_get_sbmpol() 1476 static inline void shmem_show_mpol(struct seq_file *seq, struct mempolicy *mpol) in shmem_show_mpol() 1479 static inline struct mempolicy *shmem_get_sbmpol(struct shmem_sb_info *sbinfo) in shmem_get_sbmpol() 2251 static int shmem_set_policy(struct vm_area_struct *vma, struct mempolicy *mpol) in shmem_set_policy() 2257 static struct mempolicy *shmem_get_policy(struct vm_area_struct *vma, in shmem_get_policy() 3635 struct mempolicy *mpol = NULL; in shmem_reconfigure()
|
A D | hugetlb.c | 1357 struct mempolicy *mpol; in dequeue_hugetlb_folio_vma() 2453 struct mempolicy *mpol; in alloc_buddy_hugetlb_folio_with_mpol() 2499 struct mempolicy *mpol; in alloc_hugetlb_folio_vma() 4520 struct mempolicy *mpol = get_task_policy(current); in policy_mbind_nodemask()
|
A 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()
|
A D | mmap.c | 890 pgoff_t pgoff, struct mempolicy *policy, in vma_merge()
|
/linux-6.3-rc2/fs/proc/ |
A D | internal.h | 18 struct mempolicy; 296 struct mempolicy *task_mempolicy;
|
A D | task_mmu.c | 1944 struct mempolicy *pol; in show_numa_map()
|
/linux-6.3-rc2/Documentation/translations/zh_CN/core-api/ |
A D | mm-api.rst | 117 mm/mempolicy.c
|
/linux-6.3-rc2/Documentation/admin-guide/mm/ |
A 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
|
A 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.3-rc2/Documentation/core-api/ |
A D | mm-api.rst | 107 .. kernel-doc:: mm/mempolicy.c
|
/linux-6.3-rc2/fs/kernfs/ |
A 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.3-rc2/kernel/ |
A D | fork.c | 2200 p->mempolicy = mpol_dup(p->mempolicy); in copy_process() 2201 if (IS_ERR(p->mempolicy)) { in copy_process() 2202 retval = PTR_ERR(p->mempolicy); in copy_process() 2203 p->mempolicy = NULL; in copy_process() 2558 mpol_put(p->mempolicy); in copy_process()
|
/linux-6.3-rc2/ipc/ |
A 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.3-rc2/Documentation/admin-guide/cgroup-v1/ |
A 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.3-rc2/Documentation/filesystems/ |
A D | proc.rst | 1640 cpuset. If it is due to a mempolicy's node(s) being exhausted, the allowed 1641 memory represents the set of mempolicy nodes. If it is due to a memory 1657 same system, cpuset, mempolicy, or memory controller resources to use at least
|
/linux-6.3-rc2/Documentation/admin-guide/sysctl/ |
A D | vm.rst | 813 However, if a process limits using nodes by mempolicy/cpusets,
|