Home
last modified time | relevance | path

Searched refs:gfp_mask (Results 1 – 8 of 8) sorted by relevance

/kernel/power/
Dsnapshot.c154 static void *get_image_page(gfp_t gfp_mask, int safe_needed) in get_image_page() argument
158 res = (void *)get_zeroed_page(gfp_mask); in get_image_page()
164 res = (void *)get_zeroed_page(gfp_mask); in get_image_page()
173 static void *__get_safe_page(gfp_t gfp_mask) in __get_safe_page() argument
182 return get_image_page(gfp_mask, PG_SAFE); in __get_safe_page()
185 unsigned long get_safe_page(gfp_t gfp_mask) in get_safe_page() argument
187 return (unsigned long)__get_safe_page(gfp_mask); in get_safe_page()
190 static struct page *alloc_image_page(gfp_t gfp_mask) in alloc_image_page() argument
194 page = alloc_page(gfp_mask); in alloc_image_page()
260 gfp_t gfp_mask; /* mask for allocating pages */ member
[all …]
/kernel/
Daudit.c180 gfp_t gfp_mask; member
448 static void kauditd_send_multicast_skb(struct sk_buff *skb, gfp_t gfp_mask) in kauditd_send_multicast_skb() argument
467 copy = skb_copy(skb, gfp_mask); in kauditd_send_multicast_skb()
471 nlmsg_multicast(sock, copy, 0, AUDIT_NLGRP_READLOG, gfp_mask); in kauditd_send_multicast_skb()
1267 gfp_t gfp_mask, int type) in audit_buffer_alloc() argument
1283 ab = kmalloc(sizeof(*ab), gfp_mask); in audit_buffer_alloc()
1289 ab->gfp_mask = gfp_mask; in audit_buffer_alloc()
1291 ab->skb = nlmsg_new(AUDIT_BUFSIZ, gfp_mask); in audit_buffer_alloc()
1375 struct audit_buffer *audit_log_start(struct audit_context *ctx, gfp_t gfp_mask, in audit_log_start() argument
1391 if (gfp_mask & __GFP_DIRECT_RECLAIM) { in audit_log_start()
[all …]
Dkmod.c520 char **envp, gfp_t gfp_mask, in call_usermodehelper_setup() argument
526 sub_info = kzalloc(sizeof(struct subprocess_info), gfp_mask); in call_usermodehelper_setup()
619 gfp_t gfp_mask = (wait == UMH_NO_WAIT) ? GFP_ATOMIC : GFP_KERNEL; in call_usermodehelper() local
621 info = call_usermodehelper_setup(path, argv, envp, gfp_mask, in call_usermodehelper()
Dkexec_core.c152 gfp_t gfp_mask,
305 static struct page *kimage_alloc_pages(gfp_t gfp_mask, unsigned int order) in kimage_alloc_pages() argument
309 pages = alloc_pages(gfp_mask, order); in kimage_alloc_pages()
628 gfp_t gfp_mask, in kimage_alloc_page() argument
668 page = kimage_alloc_pages(gfp_mask, 0); in kimage_alloc_page()
708 if (!(gfp_mask & __GFP_HIGHMEM) && in kimage_alloc_page()
Dcpuset.c2577 bool __cpuset_node_allowed(int node, gfp_t gfp_mask) in __cpuset_node_allowed() argument
2593 if (gfp_mask & __GFP_HARDWALL) /* If hardwall request, stop here */ in __cpuset_node_allowed()
Dworkqueue.c3121 struct workqueue_attrs *alloc_workqueue_attrs(gfp_t gfp_mask) in alloc_workqueue_attrs() argument
3125 attrs = kzalloc(sizeof(*attrs), gfp_mask); in alloc_workqueue_attrs()
3128 if (!alloc_cpumask_var(&attrs->cpumask, gfp_mask)) in alloc_workqueue_attrs()
Dcgroup.c335 gfp_t gfp_mask) in cgroup_idr_alloc() argument
339 idr_preload(gfp_mask); in cgroup_idr_alloc()
341 ret = idr_alloc(idr, ptr, start, end, gfp_mask & ~__GFP_DIRECT_RECLAIM); in cgroup_idr_alloc()
/kernel/locking/
Dlockdep.c2857 static void __lockdep_trace_alloc(gfp_t gfp_mask, unsigned long flags) in __lockdep_trace_alloc() argument
2865 if (!(gfp_mask & __GFP_DIRECT_RECLAIM)) in __lockdep_trace_alloc()
2869 if ((curr->flags & PF_MEMALLOC) && !(gfp_mask & __GFP_NOMEMALLOC)) in __lockdep_trace_alloc()
2873 if (!(gfp_mask & __GFP_FS)) in __lockdep_trace_alloc()
2887 void lockdep_trace_alloc(gfp_t gfp_mask) in lockdep_trace_alloc() argument
2897 __lockdep_trace_alloc(gfp_mask, flags); in lockdep_trace_alloc()
3021 void lockdep_trace_alloc(gfp_t gfp_mask) in lockdep_trace_alloc() argument
3856 void lockdep_set_current_reclaim_state(gfp_t gfp_mask) in lockdep_set_current_reclaim_state() argument
3858 current->lockdep_reclaim_gfp = gfp_mask; in lockdep_set_current_reclaim_state()