Home
last modified time | relevance | path

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

12

/openbmc/linux/include/linux/
H A Dmempolicy.h44 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 …]
H A Dshmem_fs.h67 struct mempolicy *mpol; /* default memory policy for mappings */
H A Dsched.h54 struct mempolicy;
1137 /* Protection against (de-)allocation: mm, files, fs, tty, keyrings, mems_allowed, mempolicy: */
1259 struct mempolicy *mempolicy; member
H A Dmm_types.h717 struct mempolicy *vm_policy; /* NUMA policy for the VMA */
H A Dmm.h34 struct mempolicy;
613 int (*set_policy)(struct vm_area_struct *vma, struct mempolicy *new);
625 struct mempolicy *(*get_policy)(struct vm_area_struct *vma,
3234 struct file *, pgoff_t, struct mempolicy *, struct vm_userfaultfd_ctx,
/openbmc/linux/mm/
H A Dmempolicy.c127 static struct mempolicy default_policy = {
132 static struct mempolicy preferred_node_policy[MAX_NUMNODES];
166 struct mempolicy *get_task_policy(struct task_struct *p) in get_task_policy()
168 struct mempolicy *pol = p->mempolicy; in get_task_policy()
186 int (*create)(struct mempolicy *pol, const nodemask_t *nodes);
187 void (*rebind)(struct mempolicy *pol, const nodemask_t *nodes);
190 static inline int mpol_store_user_nodemask(const struct mempolicy *pol) in mpol_store_user_nodemask()
203 static int mpol_new_nodemask(struct mempolicy *pol, const nodemask_t *nodes) in mpol_new_nodemask()
211 static int mpol_new_preferred(struct mempolicy *pol, const nodemask_t *nodes) in mpol_new_preferred()
229 static int mpol_set_nodemask(struct mempolicy *pol, in mpol_set_nodemask()
[all …]
H A DMakefile79 obj-$(CONFIG_NUMA) += mempolicy.o
H A Dshmem.c115 struct mempolicy *mpol;
1558 static void shmem_show_mpol(struct seq_file *seq, struct mempolicy *mpol) in shmem_show_mpol()
1570 static struct mempolicy *shmem_get_sbmpol(struct shmem_sb_info *sbinfo) in shmem_get_sbmpol()
1572 struct mempolicy *mpol = NULL; in shmem_get_sbmpol()
1582 static inline void shmem_show_mpol(struct seq_file *seq, struct mempolicy *mpol) in shmem_show_mpol()
1585 static inline struct mempolicy *shmem_get_sbmpol(struct shmem_sb_info *sbinfo) in shmem_get_sbmpol()
2348 static int shmem_set_policy(struct vm_area_struct *vma, struct mempolicy *mpol) in shmem_set_policy()
2354 static struct mempolicy *shmem_get_policy(struct vm_area_struct *vma, in shmem_get_policy()
4124 struct mempolicy *mpol = NULL; in shmem_reconfigure()
4218 struct mempolicy *mpol; in shmem_show_options()
H A Dhugetlb.c15 #include <linux/mempolicy.h>
1402 struct mempolicy *mpol; in dequeue_hugetlb_folio_vma()
2462 struct mempolicy *mpol; in alloc_buddy_hugetlb_folio_with_mpol()
2504 /* mempolicy aware migration callback */
2508 struct mempolicy *mpol; in alloc_hugetlb_folio_vma()
2525 struct mempolicy *mpol = get_task_policy(current); in policy_mbind_nodemask()
3825 * hstate attribute for optionally mempolicy-based constraint on persistent
H A Dslab.c3035 else if (current->mempolicy) in alternate_node_alloc()
3171 if (current->mempolicy || cpuset_do_slab_mem_spread()) { in __do_cache_alloc()
H A Dmmap.c866 pgoff_t pgoff, struct mempolicy *policy, in vma_merge()
/openbmc/linux/fs/proc/
H A Dinternal.h18 struct mempolicy;
294 struct mempolicy *task_mempolicy;
H A Dtask_mmu.c1952 struct mempolicy *pol; in show_numa_map()
/openbmc/linux/Documentation/translations/zh_CN/core-api/
H A Dmm-api.rst117 mm/mempolicy.c
/openbmc/openbmc/poky/meta/recipes-support/numactl/numactl/
H A DFix-the-test-output-format.patch24 echo "free memory for mempolicy regression tests"
/openbmc/linux/Documentation/admin-guide/mm/
H A Dnuma_memory_policy.rst170 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
H A Dhugetlbpage.rst291 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
/openbmc/linux/fs/kernfs/
H A Dfile.c434 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()
/openbmc/linux/Documentation/core-api/
H A Dmm-api.rst107 .. kernel-doc:: mm/mempolicy.c
/openbmc/linux/kernel/
H A Dfork.c2432 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()
/openbmc/linux/ipc/
H A Dshm.c565 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()
/openbmc/linux/Documentation/admin-guide/cgroup-v1/
H A Dcpusets.rst342 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
/openbmc/linux/Documentation/filesystems/
H A Dproc.rst1657 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
/openbmc/linux/Documentation/admin-guide/sysctl/
H A Dvm.rst813 However, if a process limits using nodes by mempolicy/cpusets,
/openbmc/openbmc/poky/meta/lib/oeqa/files/
H A Dbuildhistory_filelist2.txt3626 -rw-r--r-- root root 2154 ./usr/include/linux/mempolicy.h

12