/linux-6.1.9/lib/ |
D | slub_kunit.c | 16 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()
|
D | test_meminit.c | 245 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/ |
D | malloc.c | 130 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/ |
D | alloc_cast.cocci | 3 /// 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\|
|
D | zalloc-simple.cocci | 38 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/ |
D | memory.c | 123 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/ |
D | pgalloc_64.h | 28 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/ |
D | pgtable.c | 34 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/ |
D | pgalloc.h | 25 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/ |
D | kmemleak-test.c | 53 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/ |
D | memory-allocation.rst | 19 Linux为内存分配提供了多种API。你可以使用 `kmalloc` 或 `kmem_cache_alloc` 133 制到用户空间,应该使用第二个函数。在缓存被创建后,kmem_cache_alloc()和它的封装可以从该缓
|
/linux-6.1.9/scripts/coccinelle/null/ |
D | eno.cocci | 21 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/ |
D | pgalloc.h | 55 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/ |
D | pgd.c | 27 return kmem_cache_alloc(pgd_cache, gfp); in pgd_alloc()
|
/linux-6.1.9/drivers/misc/lkdtm/ |
D | heap.c | 260 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/ |
D | slab.h | 34 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/ |
D | linux.c | 224 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/ |
D | process.c | 30 dst->thread.xstate = kmem_cache_alloc(task_xstate_cachep, in arch_dup_task_struct()
|
/linux-6.1.9/arch/powerpc/include/asm/nohash/ |
D | pgalloc.h | 22 return kmem_cache_alloc(PGT_CACHE(PGD_INDEX_SIZE), in pgd_alloc()
|
/linux-6.1.9/arch/sh/kernel/cpu/ |
D | fpu.c | 23 tsk->thread.xstate = kmem_cache_alloc(task_xstate_cachep, in init_fpu()
|
/linux-6.1.9/arch/powerpc/include/asm/book3s/32/ |
D | pgalloc.h | 10 return kmem_cache_alloc(PGT_CACHE(PGD_INDEX_SIZE), in pgd_alloc()
|
/linux-6.1.9/drivers/infiniband/hw/hfi1/ |
D | verbs_txreq.h | 41 tx = kmem_cache_alloc(dev->verbs_txreq_cache, VERBS_TXREQ_GFP); in get_txreq()
|
/linux-6.1.9/tools/power/pm-graph/config/ |
D | cgskip.txt | 36 kmem_cache_alloc
|
/linux-6.1.9/fs/notify/dnotify/ |
D | dnotify.c | 307 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/ |
D | delayed-ref.c | 933 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()
|