Home
last modified time | relevance | path

Searched refs:kmem_cache_alloc (Results 1 – 25 of 279) sorted by relevance

12345678910>>...12

/linux/lib/
A Dslub_kunit.c16 u8 *p = kmem_cache_alloc(s, GFP_KERNEL); in test_clobber_zone()
34 u8 *p = kmem_cache_alloc(s, GFP_KERNEL); in test_next_pointer()
79 u8 *p = kmem_cache_alloc(s, GFP_KERNEL); in test_first_word()
94 u8 *p = kmem_cache_alloc(s, GFP_KERNEL); in test_clobber_50th_byte()
110 u8 *p = kmem_cache_alloc(s, GFP_KERNEL); in test_clobber_redzone_free()
A Dtest_meminit.c224 buf = kmem_cache_alloc(c, alloc_mask); in do_kmem_cache_size()
281 buf = kmem_cache_alloc(c, GFP_KERNEL); in do_kmem_cache_rcu_persistent()
299 buf = kmem_cache_alloc(c, GFP_KERNEL); in do_kmem_cache_rcu_persistent()
/linux/fs/jffs2/
A Dmalloc.c130 ret = kmem_cache_alloc(full_dnode_slab, GFP_KERNEL); in jffs2_alloc_full_dnode()
144 ret = kmem_cache_alloc(raw_dirent_slab, GFP_KERNEL); in jffs2_alloc_raw_dirent()
158 ret = kmem_cache_alloc(raw_inode_slab, GFP_KERNEL); in jffs2_alloc_raw_inode()
172 ret = kmem_cache_alloc(tmp_dnode_info_slab, GFP_KERNEL); in jffs2_alloc_tmp_dnode_info()
188 ret = kmem_cache_alloc(raw_node_ref_slab, GFP_KERNEL); in jffs2_alloc_refblock()
251 ret = kmem_cache_alloc(node_frag_slab, GFP_KERNEL); in jffs2_alloc_node_frag()
265 ret = kmem_cache_alloc(inode_cache_slab, GFP_KERNEL); in jffs2_alloc_inode_cache()
/linux/scripts/coccinelle/api/alloc/
A Dalloc_cast.cocci3 /// like kmalloc, kzalloc, kmem_cache_alloc, kmem_cache_zalloc etc.
6 //# kmalloc, kzalloc, kcalloc, kmem_cache_alloc, kmem_cache_zalloc,
34 \(kmalloc\|kzalloc\|kcalloc\|kmem_cache_alloc\|kmem_cache_zalloc\|
57 \(kmalloc\|kzalloc\|kcalloc\|kmem_cache_alloc\|kmem_cache_zalloc\|
80 \(kmalloc\|kzalloc\|kcalloc\|kmem_cache_alloc\|kmem_cache_zalloc\|
97 \(kmalloc\|kzalloc\|kcalloc\|kmem_cache_alloc\|kmem_cache_zalloc\|
A Dzalloc-simple.cocci38 kmalloc_node(E1, ...)\|kmem_cache_alloc(...)\|kmem_alloc(E1, ...)\|
82 - x = kmem_cache_alloc(E3,E4);
85 - x = (T *)kmem_cache_alloc(E3,E4);
88 - x = (T)kmem_cache_alloc(E3,E4);
272 x = (T)kmem_cache_alloc@p(E2,E3);
290 msg="WARNING: kmem_cache_zalloc should be used for %s, instead of kmem_cache_alloc/memset" % (x)
/linux/arch/sparc/include/asm/
A Dpgalloc_64.h28 return kmem_cache_alloc(pgtable_cache, GFP_KERNEL); in pgd_alloc()
45 return kmem_cache_alloc(pgtable_cache, GFP_KERNEL); in pud_alloc_one()
55 return kmem_cache_alloc(pgtable_cache, GFP_KERNEL); in pmd_alloc_one()
/linux/arch/sh/mm/
A Dpgtable.c34 return kmem_cache_alloc(pgd_cachep, GFP_KERNEL); in pgd_alloc()
50 return kmem_cache_alloc(pmd_cachep, GFP_KERNEL | __GFP_ZERO); in pmd_alloc_one()
/linux/arch/powerpc/include/asm/nohash/64/
A Dpgalloc.h22 return kmem_cache_alloc(PGT_CACHE(PUD_INDEX_SIZE), in pud_alloc_one()
50 return kmem_cache_alloc(PGT_CACHE(PMD_CACHE_INDEX), in pmd_alloc_one()
/linux/samples/kmemleak/
A Dkmemleak-test.c53 kmem_cache_alloc(files_cachep, GFP_KERNEL)); in kmemleak_test_init()
55 kmem_cache_alloc(files_cachep, GFP_KERNEL)); in kmemleak_test_init()
/linux/Documentation/translations/zh_CN/core-api/
A Dmemory-allocation.rst19 Linux为内存分配提供了多种API。你可以使用 `kmalloc` 或 `kmem_cache_alloc`
133 制到用户空间,应该使用第二个函数。在缓存被创建后,kmem_cache_alloc()和它的封装可以从该缓
/linux/scripts/coccinelle/null/
A Deno.cocci21 x = \(kmalloc\|kzalloc\|kcalloc\|kmem_cache_alloc\|kmem_cache_zalloc\|kmem_cache_alloc_node\|kmallo…
31 *x = \(kmalloc@p1\|kzalloc@p1\|kcalloc@p1\|kmem_cache_alloc@p1\|kmem_cache_zalloc@p1\|kmem_cache_al…
/linux/arch/powerpc/include/asm/book3s/64/
A Dpgalloc.h55 pgd = kmem_cache_alloc(PGT_CACHE(PGD_INDEX_SIZE), in pgd_alloc()
97 pud = kmem_cache_alloc(PGT_CACHE(PUD_CACHE_INDEX), in pud_alloc_one()
/linux/drivers/misc/lkdtm/
A Dheap.c253 val = kmem_cache_alloc(double_free_cache, GFP_KERNEL); in lkdtm_SLAB_FREE_DOUBLE()
270 val = kmem_cache_alloc(a_cache, GFP_KERNEL); in lkdtm_SLAB_FREE_CROSS()
/linux/include/linux/
A Dslab.h427 void *kmem_cache_alloc(struct kmem_cache *s, gfp_t flags) __assume_slab_alignment __malloc;
462 return kmem_cache_alloc(s, flags); in kmem_cache_alloc_node()
486 void *ret = kmem_cache_alloc(s, flags); in kmem_cache_alloc_trace()
714 return kmem_cache_alloc(k, flags | __GFP_ZERO); in kmem_cache_zalloc()
/linux/tools/testing/radix-tree/linux/
A Dslab.h20 void *kmem_cache_alloc(struct kmem_cache *cachep, int flags);
/linux/arch/arm64/mm/
A Dpgd.c27 return kmem_cache_alloc(pgd_cache, gfp); in pgd_alloc()
/linux/arch/s390/kernel/
A Dnmi.c89 origin = (unsigned long) kmem_cache_alloc(mcesa_cache, GFP_KERNEL); in nmi_init()
109 origin = (unsigned long) kmem_cache_alloc(mcesa_cache, GFP_KERNEL); in nmi_alloc_per_cpu()
/linux/arch/sh/kernel/
A Dprocess.c30 dst->thread.xstate = kmem_cache_alloc(task_xstate_cachep, in arch_dup_task_struct()
/linux/arch/powerpc/include/asm/nohash/
A Dpgalloc.h22 return kmem_cache_alloc(PGT_CACHE(PGD_INDEX_SIZE), in pgd_alloc()
/linux/arch/sh/kernel/cpu/
A Dfpu.c23 tsk->thread.xstate = kmem_cache_alloc(task_xstate_cachep, in init_fpu()
/linux/arch/powerpc/include/asm/book3s/32/
A Dpgalloc.h10 return kmem_cache_alloc(PGT_CACHE(PGD_INDEX_SIZE), in pgd_alloc()
/linux/fs/btrfs/
A Ddelayed-ref.c913 ref = kmem_cache_alloc(btrfs_delayed_tree_ref_cachep, GFP_NOFS); in btrfs_add_delayed_tree_ref()
917 head_ref = kmem_cache_alloc(btrfs_delayed_ref_head_cachep, GFP_NOFS); in btrfs_add_delayed_tree_ref()
1005 ref = kmem_cache_alloc(btrfs_delayed_data_ref_cachep, GFP_NOFS); in btrfs_add_delayed_data_ref()
1021 head_ref = kmem_cache_alloc(btrfs_delayed_ref_head_cachep, GFP_NOFS); in btrfs_add_delayed_data_ref()
1080 head_ref = kmem_cache_alloc(btrfs_delayed_ref_head_cachep, GFP_NOFS); in btrfs_add_delayed_extent_op()
/linux/fs/notify/dnotify/
A Ddnotify.c289 dn = kmem_cache_alloc(dnotify_struct_cache, GFP_KERNEL); in fcntl_dirnotify()
296 new_dn_mark = kmem_cache_alloc(dnotify_mark_cache, GFP_KERNEL); in fcntl_dirnotify()
/linux/drivers/infiniband/hw/hfi1/
A Dverbs_txreq.h41 tx = kmem_cache_alloc(dev->verbs_txreq_cache, VERBS_TXREQ_GFP); in get_txreq()
/linux/net/netfilter/
A Dnf_conncount.c183 conn = kmem_cache_alloc(conncount_conn_cachep, GFP_ATOMIC); in __nf_conncount_add()
358 rbconn = kmem_cache_alloc(conncount_rb_cachep, GFP_ATOMIC); in insert_tree()
362 conn = kmem_cache_alloc(conncount_conn_cachep, GFP_ATOMIC); in insert_tree()

Completed in 48 milliseconds

12345678910>>...12