Home
last modified time | relevance | path

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

12

/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 Dshmem_fs.h85 struct mempolicy *mpol; /* default memory policy for mappings */
H A Dpagemap.h653 struct mempolicy *policy);
656 struct mempolicy *policy) in filemap_alloc_folio_noprof()
754 pgoff_t index, fgf_t fgf_flags, gfp_t gfp, struct mempolicy *policy);
H A Dsched.h70 struct mempolicy;
1245 /* Protection against (de-)allocation: mm, files, fs, tty, keyrings, mems_allowed, mempolicy: */
1379 struct mempolicy *mempolicy; member
H A Dmm_types.h1001 struct mempolicy *vm_policy; /* NUMA policy for the VMA */
H A Dmm.h42 struct mempolicy;
878 int (*set_policy)(struct vm_area_struct *vma, struct mempolicy *new);
890 struct mempolicy *(*get_policy)(struct vm_area_struct *vma,
/linux/mm/
H A Dmempolicy.c139 static struct mempolicy default_policy = {
144 static struct mempolicy preferred_node_policy[MAX_NUMNODES];
341 struct mempolicy *get_task_policy(struct task_struct *p) in get_task_policy()
343 struct mempolicy *pol = p->mempolicy; in get_task_policy()
362 int (*create)(struct mempolicy *pol, const nodemask_t *nodes);
363 void (*rebind)(struct mempolicy *pol, const nodemask_t *nodes);
366 static inline int mpol_store_user_nodemask(const struct mempolicy *pol) in mpol_store_user_nodemask()
379 static int mpol_new_nodemask(struct mempolicy *pol, const nodemask_t *nodes) in mpol_new_nodemask()
387 static int mpol_new_preferred(struct mempolicy *pol, const nodemask_t *nodes) in mpol_new_preferred()
405 static int mpol_set_nodemask(struct mempolicy *pol, in mpol_set_nodemask()
[all …]
H A Dswap.h10 struct mempolicy;
317 struct mempolicy *mpol, pgoff_t ilx);
331 struct mempolicy *mpol, pgoff_t ilx);
335 struct vm_fault *vmf, struct mempolicy *mpol, pgoff_t ilx);
403 gfp_t gfp_mask, struct mempolicy *mpol, pgoff_t ilx) in swap_cluster_readahead()
416 struct vm_fault *vmf, struct mempolicy *mpol, pgoff_t ilx) in swapin_sync()
H A Dswap_state.c412 struct mempolicy *mpol, pgoff_t ilx) in __swap_cache_alloc()
516 struct mempolicy *mpol, pgoff_t ilx) in swap_cache_alloc_folio()
643 swp_entry_t entry, gfp_t gfp, struct mempolicy *mpol, in swap_cache_read_folio()
684 struct vm_fault *vmf, struct mempolicy *mpol, pgoff_t ilx) in swapin_sync()
714 struct mempolicy *mpol; in read_swap_cache_async()
731 struct mempolicy *mpol, pgoff_t ilx) in swap_cache_read_folio_sync()
821 struct mempolicy *mpol, pgoff_t ilx) in swap_cluster_readahead()
916 struct mempolicy *mpol, pgoff_t targ_ilx, struct vm_fault *vmf) in swap_vma_readahead()
990 struct mempolicy *mpol; in swapin_readahead()
H A Dshmem.c71 #include <linux/mempolicy.h>
117 struct mempolicy *mpol;
1768 static void shmem_show_mpol(struct seq_file *seq, struct mempolicy *mpol) in shmem_show_mpol()
1780 static struct mempolicy *shmem_get_sbmpol(struct shmem_sb_info *sbinfo) in shmem_get_sbmpol()
1782 struct mempolicy *mpol = NULL; in shmem_get_sbmpol()
1792 static inline void shmem_show_mpol(struct seq_file *seq, struct mempolicy *mpol) in shmem_show_mpol()
1795 static inline struct mempolicy *shmem_get_sbmpol(struct shmem_sb_info *sbinfo) in shmem_get_sbmpol()
1801 static struct mempolicy *shmem_get_pgoff_policy(struct shmem_inode_info *info,
1807 struct mempolicy *mpol; in shmem_swapin_cluster()
1931 struct mempolicy *mpo in shmem_alloc_folio()
[all...]
H A Dvma.h116 struct mempolicy *policy;
495 struct mempolicy *new_pol);
H A DMakefile86 obj-$(CONFIG_NUMA) += mempolicy.o
H A Dzswap.c993 struct mempolicy *mpol; in zswap_writeback_entry()
H A Dfilemap.c1000 struct mempolicy *policy) in filemap_alloc_folio_noprof()
1948 pgoff_t index, fgf_t fgp_flags, gfp_t gfp, struct mempolicy *policy) in __filemap_get_folio_mpol()
H A Dhugetlb.c2224 struct mempolicy *mpol = get_task_policy(current); in policy_mbind_nodemask()
2960 struct mempolicy *mpol; in alloc_hugetlb_folio()
6252 struct mempolicy *mpol; in alloc_hugetlb_folio_vma()
/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.h608 struct mempolicy *vm_policy; /* NUMA policy for the VMA */
712 int (*set_policy)(struct vm_area_struct *vma, struct mempolicy *new);
724 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/fs/proc/
H A Dinternal.h19 struct mempolicy;
401 struct mempolicy *task_mempolicy;
/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>
86 struct mempolicy *policy; in kvm_gmem_prepare_folio()
400 static int kvm_gmem_set_policy(struct vm_area_struct *vma, struct mempolicy *mpol) in kvm_gmem_fault_user_mapping()
407 static struct mempolicy *kvm_gmem_get_policy(struct vm_area_struct *vma, in kvm_gmem_fault_user_mapping()
/linux/kernel/
H A Dfork.c35 #include <linux/mempolicy.h>
2255 p->mempolicy = mpol_dup(p->mempolicy); in copy_process()
2256 if (IS_ERR(p->mempolicy)) { in copy_process()
2257 retval = PTR_ERR(p->mempolicy); in copy_process()
2258 p->mempolicy = NULL; in copy_process()
2643 mpol_put(p->mempolicy); in copy_process()
/linux/kernel/futex/
H A Dcore.c40 #include <linux/mempolicy.h>
296 struct mempolicy *mpol; in __futex_key_to_node()

12