Home
last modified time | relevance | path

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

123456789

/linux-6.1.9/lib/
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()
Dtest_meminit.c245 buf = kmem_cache_alloc(c, alloc_mask); in do_kmem_cache_size()
302 buf = kmem_cache_alloc(c, GFP_KERNEL); in do_kmem_cache_rcu_persistent()
325 buf = kmem_cache_alloc(c, GFP_KERNEL); in do_kmem_cache_rcu_persistent()
/linux-6.1.9/fs/jffs2/
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-6.1.9/scripts/coccinelle/api/alloc/
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\|
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-6.1.9/fs/dlm/
Dmemory.c123 return kmem_cache_alloc(mhandle_cache, GFP_NOFS); in dlm_allocate_mhandle()
133 return kmem_cache_alloc(writequeue_cache, GFP_ATOMIC); in dlm_allocate_writequeue()
143 return kmem_cache_alloc(msg_cache, allocation); in dlm_allocate_msg()
/linux-6.1.9/arch/sparc/include/asm/
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-6.1.9/arch/sh/mm/
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-6.1.9/arch/powerpc/include/asm/nohash/64/
Dpgalloc.h25 return kmem_cache_alloc(PGT_CACHE(PUD_INDEX_SIZE), in pud_alloc_one()
53 return kmem_cache_alloc(PGT_CACHE(PMD_CACHE_INDEX), in pmd_alloc_one()
/linux-6.1.9/samples/kmemleak/
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-6.1.9/Documentation/translations/zh_CN/core-api/
Dmemory-allocation.rst19 Linux为内存分配提供了多种API。你可以使用 `kmalloc` 或 `kmem_cache_alloc`
133 制到用户空间,应该使用第二个函数。在缓存被创建后,kmem_cache_alloc()和它的封装可以从该缓
/linux-6.1.9/scripts/coccinelle/null/
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-6.1.9/arch/powerpc/include/asm/book3s/64/
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-6.1.9/arch/arm64/mm/
Dpgd.c27 return kmem_cache_alloc(pgd_cache, gfp); in pgd_alloc()
/linux-6.1.9/drivers/misc/lkdtm/
Dheap.c260 val = kmem_cache_alloc(double_free_cache, GFP_KERNEL); in lkdtm_SLAB_FREE_DOUBLE()
277 val = kmem_cache_alloc(a_cache, GFP_KERNEL); in lkdtm_SLAB_FREE_CROSS()
/linux-6.1.9/tools/include/linux/
Dslab.h34 static inline void *kmem_cache_alloc(struct kmem_cache *cachep, int flags) in kmem_cache_alloc() function
/linux-6.1.9/tools/testing/radix-tree/
Dlinux.c224 list[i] = kmem_cache_alloc(test_cache, __GFP_DIRECT_RECLAIM); in test_kmem_cache_bulk()
234 list[i] = kmem_cache_alloc(test_cache, __GFP_DIRECT_RECLAIM); in test_kmem_cache_bulk()
/linux-6.1.9/arch/sh/kernel/
Dprocess.c30 dst->thread.xstate = kmem_cache_alloc(task_xstate_cachep, in arch_dup_task_struct()
/linux-6.1.9/arch/powerpc/include/asm/nohash/
Dpgalloc.h22 return kmem_cache_alloc(PGT_CACHE(PGD_INDEX_SIZE), in pgd_alloc()
/linux-6.1.9/arch/sh/kernel/cpu/
Dfpu.c23 tsk->thread.xstate = kmem_cache_alloc(task_xstate_cachep, in init_fpu()
/linux-6.1.9/arch/powerpc/include/asm/book3s/32/
Dpgalloc.h10 return kmem_cache_alloc(PGT_CACHE(PGD_INDEX_SIZE), in pgd_alloc()
/linux-6.1.9/drivers/infiniband/hw/hfi1/
Dverbs_txreq.h41 tx = kmem_cache_alloc(dev->verbs_txreq_cache, VERBS_TXREQ_GFP); in get_txreq()
/linux-6.1.9/tools/power/pm-graph/config/
Dcgskip.txt36 kmem_cache_alloc
/linux-6.1.9/fs/notify/dnotify/
Ddnotify.c307 dn = kmem_cache_alloc(dnotify_struct_cache, GFP_KERNEL); in fcntl_dirnotify()
314 new_dn_mark = kmem_cache_alloc(dnotify_mark_cache, GFP_KERNEL); in fcntl_dirnotify()
/linux-6.1.9/fs/btrfs/
Ddelayed-ref.c933 ref = kmem_cache_alloc(btrfs_delayed_tree_ref_cachep, GFP_NOFS); in btrfs_add_delayed_tree_ref()
937 head_ref = kmem_cache_alloc(btrfs_delayed_ref_head_cachep, GFP_NOFS); in btrfs_add_delayed_tree_ref()
1025 ref = kmem_cache_alloc(btrfs_delayed_data_ref_cachep, GFP_NOFS); in btrfs_add_delayed_data_ref()
1041 head_ref = kmem_cache_alloc(btrfs_delayed_ref_head_cachep, GFP_NOFS); in btrfs_add_delayed_data_ref()
1100 head_ref = kmem_cache_alloc(btrfs_delayed_ref_head_cachep, GFP_NOFS); in btrfs_add_delayed_extent_op()

123456789