Searched refs:gfp_mask (Results 1 – 7 of 7) sorted by relevance
/kernel/power/ |
D | snapshot.c | 95 static void *get_image_page(gfp_t gfp_mask, int safe_needed) in get_image_page() argument 99 res = (void *)get_zeroed_page(gfp_mask); in get_image_page() 105 res = (void *)get_zeroed_page(gfp_mask); in get_image_page() 114 unsigned long get_safe_page(gfp_t gfp_mask) in get_safe_page() argument 116 return (unsigned long)get_image_page(gfp_mask, PG_SAFE); in get_safe_page() 119 static struct page *alloc_image_page(gfp_t gfp_mask) in alloc_image_page() argument 123 page = alloc_page(gfp_mask); in alloc_image_page() 189 gfp_t gfp_mask; /* mask for allocating pages */ member 194 chain_init(struct chain_allocator *ca, gfp_t gfp_mask, int safe_needed) in chain_init() argument 198 ca->gfp_mask = gfp_mask; in chain_init() [all …]
|
/kernel/ |
D | audit.c | 164 gfp_t gfp_mask; member 974 gfp_t gfp_mask, int type) in audit_buffer_alloc() argument 990 ab = kmalloc(sizeof(*ab), gfp_mask); in audit_buffer_alloc() 996 ab->gfp_mask = gfp_mask; in audit_buffer_alloc() 998 ab->skb = nlmsg_new(AUDIT_BUFSIZ, gfp_mask); in audit_buffer_alloc() 1098 struct audit_buffer *audit_log_start(struct audit_context *ctx, gfp_t gfp_mask, in audit_log_start() argument 1113 if (gfp_mask & __GFP_WAIT) in audit_log_start() 1121 if (gfp_mask & __GFP_WAIT && audit_backlog_wait_time) { in audit_log_start() 1142 ab = audit_buffer_alloc(ctx, gfp_mask, type); in audit_log_start() 1167 int ret = pskb_expand_head(skb, 0, extra, ab->gfp_mask); in audit_expand() [all …]
|
D | kmod.c | 531 char **envp, gfp_t gfp_mask, in call_usermodehelper_setup() argument 537 sub_info = kzalloc(sizeof(struct subprocess_info), gfp_mask); in call_usermodehelper_setup() 640 gfp_t gfp_mask = (wait == UMH_NO_WAIT) ? GFP_ATOMIC : GFP_KERNEL; in call_usermodehelper() local 642 info = call_usermodehelper_setup(path, argv, envp, gfp_mask, in call_usermodehelper()
|
D | kexec.c | 120 gfp_t gfp_mask, 362 static struct page *kimage_alloc_pages(gfp_t gfp_mask, unsigned int order) in kimage_alloc_pages() argument 366 pages = alloc_pages(gfp_mask, order); in kimage_alloc_pages() 685 gfp_t gfp_mask, in kimage_alloc_page() argument 725 page = kimage_alloc_pages(gfp_mask, 0); in kimage_alloc_page() 765 if (!(gfp_mask & __GFP_HIGHMEM) && in kimage_alloc_page()
|
D | cpuset.c | 2392 int __cpuset_node_allowed_softwall(int node, gfp_t gfp_mask) in __cpuset_node_allowed_softwall() argument 2397 if (in_interrupt() || (gfp_mask & __GFP_THISNODE)) in __cpuset_node_allowed_softwall() 2399 might_sleep_if(!(gfp_mask & __GFP_HARDWALL)); in __cpuset_node_allowed_softwall() 2408 if (gfp_mask & __GFP_HARDWALL) /* If hardwall request, stop here */ in __cpuset_node_allowed_softwall() 2449 int __cpuset_node_allowed_hardwall(int node, gfp_t gfp_mask) in __cpuset_node_allowed_hardwall() argument 2451 if (in_interrupt() || (gfp_mask & __GFP_THISNODE)) in __cpuset_node_allowed_hardwall()
|
D | lockdep.c | 2718 static void __lockdep_trace_alloc(gfp_t gfp_mask, unsigned long flags) in __lockdep_trace_alloc() argument 2726 if (!(gfp_mask & __GFP_WAIT)) in __lockdep_trace_alloc() 2730 if ((curr->flags & PF_MEMALLOC) && !(gfp_mask & __GFP_NOMEMALLOC)) in __lockdep_trace_alloc() 2734 if (!(gfp_mask & __GFP_FS)) in __lockdep_trace_alloc() 2748 void lockdep_trace_alloc(gfp_t gfp_mask) in lockdep_trace_alloc() argument 2758 __lockdep_trace_alloc(gfp_mask, flags); in lockdep_trace_alloc() 2874 void lockdep_trace_alloc(gfp_t gfp_mask) in lockdep_trace_alloc() argument 3646 void lockdep_set_current_reclaim_state(gfp_t gfp_mask) in lockdep_set_current_reclaim_state() argument 3648 current->lockdep_reclaim_gfp = gfp_mask; in lockdep_set_current_reclaim_state()
|
D | workqueue.c | 3379 struct workqueue_attrs *alloc_workqueue_attrs(gfp_t gfp_mask) in alloc_workqueue_attrs() argument 3383 attrs = kzalloc(sizeof(*attrs), gfp_mask); in alloc_workqueue_attrs() 3386 if (!alloc_cpumask_var(&attrs->cpumask, gfp_mask)) in alloc_workqueue_attrs()
|