Home | History | Annotate | Download | only in linux

Lines Matching refs:flags

20 /* flags for kmem_cache_alloc() */
32 /* flags to pass to kmem_cache_create().
50 /* flags passed to a constructor func */
82 #define ____kmalloc(size, flags) __kmalloc(size, flags)
85 #define ____kmalloc(size, flags) \
86 __kmalloc_track_caller(size, flags, __builtin_return_address(0))
92 * @flags: the type of memory to allocate.
97 * The @flags argument may be one of:
112 * Also it is possible to set different flags by OR'ing
113 * in one or more of the following additional @flags:
134 static inline void *kmalloc(size_t size, gfp_t flags)
150 return kmem_cache_alloc((flags & GFP_DMA) ?
152 malloc_sizes[i].cs_cachep, flags);
154 return __kmalloc(size, flags);
162 * @flags: the type of memory to allocate (see kmalloc).
164 static inline void *kzalloc(size_t size, gfp_t flags)
180 return kmem_cache_zalloc((flags & GFP_DMA) ?
182 malloc_sizes[i].cs_cachep, flags);
184 return __kzalloc(size, flags);
191 * @flags: the type of memory to allocate.
193 static inline void *kcalloc(size_t n, size_t size, gfp_t flags)
197 return kzalloc(n * size, flags);
205 extern void *kmem_cache_alloc_node(kmem_cache_t *, gfp_t flags, int node);
206 extern void *kmalloc_node(size_t size, gfp_t flags, int node);
208 static inline void *kmem_cache_alloc_node(kmem_cache_t *cachep, gfp_t flags, int node)
210 return kmem_cache_alloc(cachep, flags);
212 static inline void *kmalloc_node(size_t size, gfp_t flags, int node)
214 return kmalloc(size, flags);
232 void *kmem_cache_alloc(struct kmem_cache *c, gfp_t flags);
236 void *kmalloc(size_t size, gfp_t flags);
237 void *__kzalloc(size_t size, gfp_t flags);
242 static inline void *kcalloc(size_t n, size_t size, gfp_t flags)
244 return __kzalloc(n * size, flags);