| /linux/scripts/coccinelle/api/alloc/ |
| H A 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, 53 \(kmalloc\|kzalloc\|kcalloc\|kmem_cache_alloc\|kmem_cache_zalloc\| 75 \(kmalloc\|kzalloc\|kcalloc\|kmem_cache_alloc\|kmem_cache_zalloc\| 97 \(kmalloc\|kzalloc\|kcalloc\|kmem_cache_alloc\|kmem_cache_zalloc\| 113 \(kmalloc\|kzalloc\|kcalloc\|kmem_cache_alloc\|kmem_cache_zalloc\|
|
| H A D | zalloc-simple.cocci | 38 kmalloc_node(E1, ...)\|kmem_cache_alloc(...)\| 82 - x = kmem_cache_alloc(E3,E4); 85 - x = (T *)kmem_cache_alloc(E3,E4); 88 - x = (T)kmem_cache_alloc(E3,E4); 263 x = (T)kmem_cache_alloc@p(E2,E3); 281 msg="WARNING: kmem_cache_zalloc should be used for %s, instead of kmem_cache_alloc/memset" % (x)
|
| /linux/lib/tests/ |
| H A D | slub_kunit.c | 36 u8 *p = kmem_cache_alloc(s, GFP_KERNEL); in test_clobber_zone() 54 u8 *p = kmem_cache_alloc(s, GFP_KERNEL); in test_next_pointer() 99 u8 *p = kmem_cache_alloc(s, GFP_KERNEL); in test_first_word() 114 u8 *p = kmem_cache_alloc(s, GFP_KERNEL); in test_clobber_50th_byte() 130 u8 *p = kmem_cache_alloc(s, GFP_KERNEL); in test_clobber_redzone_free() 182 p = kmem_cache_alloc(s, GFP_KERNEL); in test_kfree_rcu() 233 p = kmem_cache_alloc(s, GFP_KERNEL); in test_kfree_rcu_wq_destroy() 251 kmem_cache_alloc(s, GFP_KERNEL); in test_leak_destroy()
|
| /linux/arch/sparc/include/asm/ |
| H A 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/arch/sh/mm/ |
| H A D | pgtable.c | 36 return kmem_cache_alloc(pgd_cachep, GFP_KERNEL); in pgd_alloc() 52 return kmem_cache_alloc(pmd_cachep, GFP_KERNEL | __GFP_ZERO); in pmd_alloc_one()
|
| /linux/arch/powerpc/include/asm/nohash/64/ |
| H A 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/Documentation/translations/zh_CN/core-api/ |
| H A D | memory-allocation.rst | 19 Linux为内存分配提供了多种API。你可以使用 `kmalloc` 或 `kmem_cache_alloc` 133 制到用户空间,应该使用第二个函数。在缓存被创建后,kmem_cache_alloc()和它的封装可以从该缓
|
| /linux/scripts/coccinelle/null/ |
| H A 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/mm/ |
| H A D | vma_init.c | 36 vma = kmem_cache_alloc(vm_area_cachep, GFP_KERNEL); in vm_area_alloc() 128 struct vm_area_struct *new = kmem_cache_alloc(vm_area_cachep, GFP_KERNEL); in vm_area_dup()
|
| /linux/arch/powerpc/include/asm/book3s/64/ |
| H A 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/tools/testing/selftests/ftrace/test.d/dynevent/ |
| H A D | add_remove_tprobe.tc | 10 TRACEPOINT1=kmem_cache_alloc
|
| H A D | add_remove_btfarg.tc | 28 TP2=kmem_cache_alloc
|
| /linux/arch/sh/kernel/ |
| H A D | process.c | 30 dst->thread.xstate = kmem_cache_alloc(task_xstate_cachep, in arch_dup_task_struct()
|
| /linux/tools/testing/shared/ |
| H A D | linux.c | 350 list[i] = kmem_cache_alloc(test_cache, __GFP_DIRECT_RECLAIM); 360 list[i] = kmem_cache_alloc(test_cache, __GFP_DIRECT_RECLAIM);
|
| /linux/arch/sh/kernel/cpu/ |
| H A D | fpu.c | 23 tsk->thread.xstate = kmem_cache_alloc(task_xstate_cachep, in init_fpu()
|
| /linux/arch/powerpc/include/asm/nohash/ |
| H A D | pgalloc.h | 22 pgd_t *pgd = kmem_cache_alloc(PGT_CACHE(PGD_INDEX_SIZE), in pgd_alloc()
|
| /linux/drivers/infiniband/hw/hfi1/ |
| H A D | verbs_txreq.h | 41 tx = kmem_cache_alloc(dev->verbs_txreq_cache, VERBS_TXREQ_GFP); in get_txreq()
|
| H A D | verbs_txreq.c | 61 tx = kmem_cache_alloc(dev->verbs_txreq_cache, VERBS_TXREQ_GFP); in __get_txreq()
|
| /linux/arch/powerpc/include/asm/book3s/32/ |
| H A D | pgalloc.h | 10 pgd_t *pgd = kmem_cache_alloc(PGT_CACHE(PGD_INDEX_SIZE), in pgd_alloc()
|
| /linux/fs/notify/dnotify/ |
| H A D | dnotify.c | 305 dn = kmem_cache_alloc(dnotify_struct_cache, GFP_KERNEL); in fcntl_dirnotify() 316 new_dn_mark = kmem_cache_alloc(dnotify_mark_cache, GFP_KERNEL); in fcntl_dirnotify()
|
| /linux/tools/power/pm-graph/config/ |
| H A D | cgskip.txt | 36 kmem_cache_alloc
|
| /linux/security/integrity/ima/ |
| H A D | ima_iint.c | 99 iint = kmem_cache_alloc(ima_iint_cache, GFP_NOFS); in ima_inode_get()
|
| /linux/net/dccp/ccids/lib/ |
| H A D | packet_history.c | |
| /linux/fs/notify/fanotify/ |
| H A D | fanotify.c | 557 pevent = kmem_cache_alloc(fanotify_path_event_cachep, gfp); in fanotify_alloc_path_event() 573 pevent = kmem_cache_alloc(fanotify_mnt_event_cachep, gfp); in fanotify_alloc_mnt_event() 592 pevent = kmem_cache_alloc(fanotify_perm_event_cachep, gfp); in fanotify_alloc_perm_event() 618 ffe = kmem_cache_alloc(fanotify_fid_event_cachep, gfp); in fanotify_alloc_fid_event()
|
| /linux/drivers/gpu/drm/i915/ |
| H A D | i915_scheduler.c | 92 p = kmem_cache_alloc(slab_priorities, GFP_ATOMIC); in i915_sched_lookup_priolist() 319 return kmem_cache_alloc(slab_dependencies, GFP_KERNEL); in i915_dependency_alloc()
|