Home
last modified time | relevance | path

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

/linux/include/linux/
H A Dmempolicy.h47 struct mempolicy { struct
66 extern void __mpol_put(struct mempolicy *pol);
67 static inline void mpol_put(struct mempolicy *pol) in mpol_put()
77 static inline int mpol_needs_cond_ref(struct mempolicy *pol) in mpol_needs_cond_ref()
82 static inline void mpol_cond_put(struct mempolicy *pol) in mpol_cond_put()
88 extern struct mempolicy *__mpol_dup(struct mempolicy *pol);
89 static inline struct mempolicy *mpol_dup(struct mempolicy *pol) in mpol_dup()
96 static inline void mpol_get(struct mempolicy *pol) in mpol_get()
102 extern bool __mpol_equal(struct mempolicy *a, struct mempolicy *b);
103 static inline bool mpol_equal(struct mempolicy *a, struct mempolicy *b) in mpol_equal()
[all …]
H A Dgfp.h14 struct mempolicy;
325 struct mempolicy *mpol, pgoff_t ilx, int nid);
338 struct mempolicy *mpol, pgoff_t ilx, int nid) in folio_alloc_mpol_noprof()
H A Dpagemap.h655 struct mempolicy *policy);
658 struct mempolicy *policy) in filemap_alloc_folio_noprof()
756 pgoff_t index, fgf_t fgf_flags, gfp_t gfp, struct mempolicy *policy);
H A Dsched.h70 struct mempolicy;
1359 struct mempolicy *mempolicy; member
H A Dmm.h41 struct mempolicy;
840 int (*set_policy)(struct vm_area_struct *vma, struct mempolicy *new);
852 struct mempolicy *(*get_policy)(struct vm_area_struct *vma,
/linux/mm/
H A Dmempolicy.c138 static struct mempolicy default_policy = {
143 static struct mempolicy preferred_node_policy[MAX_NUMNODES];
340 struct mempolicy *get_task_policy(struct task_struct *p) in get_task_policy()
342 struct mempolicy *pol = p->mempolicy; in get_task_policy()
361 int (*create)(struct mempolicy *pol, const nodemask_t *nodes);
362 void (*rebind)(struct mempolicy *pol, const nodemask_t *nodes);
365 static inline int mpol_store_user_nodemask(const struct mempolicy *pol) in mpol_store_user_nodemask()
378 static int mpol_new_nodemask(struct mempolicy *pol, const nodemask_t *nodes) in mpol_new_nodemask()
386 static int mpol_new_preferred(struct mempolicy *pol, const nodemask_t *nodes) in mpol_new_preferred()
404 static int mpol_set_nodemask(struct mempolicy *pol, in mpol_set_nodemask()
[all …]
H A Dswap_state.c530 struct mempolicy *mpol, pgoff_t ilx, in swap_cache_alloc_folio()
599 struct mempolicy *mpol; in read_swap_cache_async()
699 struct mempolicy *mpol, pgoff_t ilx) in swap_cluster_readahead()
807 struct mempolicy *mpol, pgoff_t targ_ilx, struct vm_fault *vmf) in swap_vma_readahead()
894 struct mempolicy *mpol; in swapin_readahead()
H A Dhugetlb.c1322 struct mempolicy *mpol; in dequeue_hugetlb_folio_vma()
2156 struct mempolicy *mpol; in alloc_buddy_hugetlb_folio_with_mpol()
2224 struct mempolicy *mpol = get_task_policy(current); in policy_mbind_nodemask()
6134 struct mempolicy *mpol; in alloc_hugetlb_folio_vma()
H A Dzswap.c993 struct mempolicy *mpol; in zswap_writeback_entry()
H A Dfilemap.c995 struct mempolicy *policy) in filemap_alloc_folio_noprof()
1942 pgoff_t index, fgf_t fgp_flags, gfp_t gfp, struct mempolicy *policy) in __filemap_get_folio_mpol()
H A Dvma.c1748 struct mempolicy *new_pol) in vma_modify_policy()
/linux/Documentation/ABI/testing/
H A Dsysfs-kernel-mm-mempolicy-weighted-interleave1 What: /sys/kernel/mm/mempolicy/weighted_interleave/
6 What: /sys/kernel/mm/mempolicy/weighted_interleave/nodeN
12 utilized by tasks which have set their mempolicy to
29 What: /sys/kernel/mm/mempolicy/weighted_interleave/auto
H A Dsysfs-kernel-mm-mempolicy1 What: /sys/kernel/mm/mempolicy/
/linux/tools/testing/vma/include/
H A Dstubs.h37 struct mempolicy {}; struct
181 static inline bool mpol_equal(struct mempolicy *a, struct mempolicy *b) in mpol_equal()
373 static inline void mpol_put(struct mempolicy *pol) in mpol_put()
H A Ddup.h616 struct mempolicy *vm_policy; /* NUMA policy for the VMA */
717 int (*set_policy)(struct vm_area_struct *vma, struct mempolicy *new);
729 struct mempolicy *(*get_policy)(struct vm_area_struct *vma,
/linux/Documentation/driver-api/cxl/allocation/
H A Dpage-allocator.rst15 NUMA nodes and mempolicy
17 Unless a task explicitly registers a mempolicy, the default memory policy
/linux/Documentation/translations/zh_CN/core-api/
H A Dmm-api.rst117 mm/mempolicy.c
/linux/virt/kvm/
H A Dguest_memfd.c7 #include <linux/mempolicy.h>
123 struct mempolicy *policy; in kvm_gmem_get_folio()
433 static int kvm_gmem_set_policy(struct vm_area_struct *vma, struct mempolicy *mpol) in kvm_gmem_set_policy()
440 static struct mempolicy *kvm_gmem_get_policy(struct vm_area_struct *vma, in kvm_gmem_get_policy()
/linux/kernel/
H A Dfork.c2197 p->mempolicy = mpol_dup(p->mempolicy); in copy_process()
2198 if (IS_ERR(p->mempolicy)) { in copy_process()
2199 retval = PTR_ERR(p->mempolicy); in copy_process()
2200 p->mempolicy = NULL; in copy_process()
2584 mpol_put(p->mempolicy); in copy_process()
/linux/ipc/
H A Dshm.c571 static int shm_set_policy(struct vm_area_struct *vma, struct mempolicy *mpol) in shm_set_policy()
581 static struct mempolicy *shm_get_policy(struct vm_area_struct *vma, in shm_get_policy()
585 struct mempolicy *mpol = vma->vm_policy; in shm_get_policy()
/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
631 mempolicy MPOL_BIND, and the nodes to which it was bound overlap with
/linux/kernel/futex/
H A Dcore.c339 struct mempolicy *mpol; in __futex_key_to_node()
/linux/Documentation/admin-guide/sysctl/
H A Dvm.rst909 However, if a process limits using nodes by mempolicy/cpusets,
/linux/
H A DMAINTAINERS16879 F: include/linux/mempolicy.h
16880 F: include/uapi/linux/mempolicy.h
16883 F: mm/mempolicy.c