/linux-6.6.21/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 | 83 + x = kmem_cache_zalloc(E3,E4); 86 + x = kmem_cache_zalloc(E3,E4); 89 + x = (T)kmem_cache_zalloc(E3,E4); 290 msg="WARNING: kmem_cache_zalloc should be used for %s, instead of kmem_cache_alloc/memset" % (x)
|
/linux-6.6.21/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.6.21/fs/dlm/ |
D | memory.c | 100 r = kmem_cache_zalloc(rsb_cache, GFP_NOFS); in dlm_allocate_rsb() 115 lkb = kmem_cache_zalloc(lkb_cache, GFP_NOFS); in dlm_allocate_lkb()
|
/linux-6.6.21/security/selinux/ss/ |
D | hashtab.c | 55 newnode = kmem_cache_zalloc(hashtab_node_cachep, GFP_KERNEL); in __hashtab_insert() 155 tmp = kmem_cache_zalloc(hashtab_node_cachep, in hashtab_duplicate()
|
D | ebitmap.c | 62 new = kmem_cache_zalloc(ebitmap_node_cachep, GFP_ATOMIC); in ebitmap_cpy() 188 e_iter = kmem_cache_zalloc(ebitmap_node_cachep, GFP_ATOMIC); in ebitmap_netlbl_import() 325 new = kmem_cache_zalloc(ebitmap_node_cachep, GFP_ATOMIC); in ebitmap_set_bit() 427 tmp = kmem_cache_zalloc(ebitmap_node_cachep, GFP_KERNEL); in ebitmap_read()
|
/linux-6.6.21/virt/kvm/ |
D | async_pf.c | 178 work = kmem_cache_zalloc(async_pf_cache, GFP_NOWAIT | __GFP_NOWARN); in kvm_setup_async_pf() 210 work = kmem_cache_zalloc(async_pf_cache, GFP_ATOMIC); in kvm_async_pf_wakeup_all()
|
/linux-6.6.21/mm/ |
D | mm_slot.h | 28 return kmem_cache_zalloc(cache, GFP_KERNEL); in mm_slot_alloc()
|
/linux-6.6.21/fs/jffs2/ |
D | malloc.c | 280 xd = kmem_cache_zalloc(xattr_datum_cache, GFP_KERNEL); in jffs2_alloc_xattr_datum() 300 ref = kmem_cache_zalloc(xattr_ref_cache, GFP_KERNEL); in jffs2_alloc_xattr_ref()
|
/linux-6.6.21/drivers/s390/cio/ |
D | vfio_ccw_ops.c | 63 private->io_region = kmem_cache_zalloc(vfio_ccw_io_region, in vfio_ccw_mdev_init_dev() 68 private->cmd_region = kmem_cache_zalloc(vfio_ccw_cmd_region, in vfio_ccw_mdev_init_dev() 73 private->schib_region = kmem_cache_zalloc(vfio_ccw_schib_region, in vfio_ccw_mdev_init_dev() 78 private->crw_region = kmem_cache_zalloc(vfio_ccw_crw_region, in vfio_ccw_mdev_init_dev()
|
/linux-6.6.21/drivers/net/wireguard/ |
D | allowedips.c | 190 node = kmem_cache_zalloc(node_cache, GFP_KERNEL); in add() 205 newnode = kmem_cache_zalloc(node_cache, GFP_KERNEL); in add() 234 node = kmem_cache_zalloc(node_cache, GFP_KERNEL); in add()
|
/linux-6.6.21/security/selinux/ |
D | avc.c | 298 xpd_node = kmem_cache_zalloc(avc_xperms_decision_cachep, in avc_xperms_decision_alloc() 305 xpd->allowed = kmem_cache_zalloc(avc_xperms_data_cachep, in avc_xperms_decision_alloc() 311 xpd->auditallow = kmem_cache_zalloc(avc_xperms_data_cachep, in avc_xperms_decision_alloc() 317 xpd->dontaudit = kmem_cache_zalloc(avc_xperms_data_cachep, in avc_xperms_decision_alloc() 346 xp_node = kmem_cache_zalloc(avc_xperms_cachep, GFP_NOWAIT | __GFP_NOWARN); in avc_xperms_alloc() 500 node = kmem_cache_zalloc(avc_node_cachep, GFP_NOWAIT | __GFP_NOWARN); in avc_alloc_node()
|
/linux-6.6.21/include/acpi/platform/ |
D | aclinuxex.h | 67 return kmem_cache_zalloc(cache, in acpi_os_acquire_object()
|
/linux-6.6.21/drivers/iommu/ |
D | fsl_pamu_domain.c | 155 info = kmem_cache_zalloc(iommu_devinfo_cache, GFP_ATOMIC); in attach_device() 202 dma_domain = kmem_cache_zalloc(fsl_pamu_domain_cache, GFP_KERNEL); in fsl_pamu_domain_alloc()
|
/linux-6.6.21/fs/orangefs/ |
D | orangefs-cache.c | 120 new_op = kmem_cache_zalloc(op_cache, GFP_KERNEL); in op_alloc()
|
/linux-6.6.21/arch/powerpc/kernel/ |
D | rtas_flash.c | 328 uf->flist = kmem_cache_zalloc(flash_block_cache, GFP_KERNEL); in rtas_flash_write() 339 fl->next = kmem_cache_zalloc(flash_block_cache, GFP_KERNEL); in rtas_flash_write() 348 p = kmem_cache_zalloc(flash_block_cache, GFP_KERNEL); in rtas_flash_write()
|
/linux-6.6.21/fs/gfs2/ |
D | trans.c | 115 tr = kmem_cache_zalloc(gfs2_trans_cachep, GFP_NOFS); in gfs2_trans_begin() 168 bd = kmem_cache_zalloc(gfs2_bufdata_cachep, GFP_NOFS | __GFP_NOFAIL); in gfs2_alloc_bufdata()
|
/linux-6.6.21/fs/ecryptfs/ |
D | file.c | 220 file_info = kmem_cache_zalloc(ecryptfs_file_info_cache, GFP_KERNEL); in ecryptfs_open() 288 file_info = kmem_cache_zalloc(ecryptfs_file_info_cache, GFP_KERNEL); in ecryptfs_dir_open()
|
/linux-6.6.21/drivers/md/ |
D | dm-uevent.c | 48 event = kmem_cache_zalloc(_dm_event_cache, GFP_ATOMIC); in dm_uevent_alloc()
|
/linux-6.6.21/fs/xfs/ |
D | xfs_iunlink_item.c | 164 iup = kmem_cache_zalloc(xfs_iunlink_cache, GFP_KERNEL | __GFP_NOFAIL); in xfs_iunlink_log_inode()
|
/linux-6.6.21/fs/ |
D | file_table.c | 206 f = kmem_cache_zalloc(filp_cachep, GFP_KERNEL); in alloc_empty_file() 240 f = kmem_cache_zalloc(filp_cachep, GFP_KERNEL); in alloc_empty_file_noaccount()
|
/linux-6.6.21/drivers/bus/mhi/ep/ |
D | main.c | 77 event = kmem_cache_zalloc(mhi_cntrl->ev_ring_el_cache, GFP_KERNEL | GFP_DMA); in mhi_ep_send_completion_event() 96 event = kmem_cache_zalloc(mhi_cntrl->ev_ring_el_cache, GFP_KERNEL | GFP_DMA); in mhi_ep_send_state_change_event() 114 event = kmem_cache_zalloc(mhi_cntrl->ev_ring_el_cache, GFP_KERNEL | GFP_DMA); in mhi_ep_send_ee_event() 133 event = kmem_cache_zalloc(mhi_cntrl->ev_ring_el_cache, GFP_KERNEL | GFP_DMA); in mhi_ep_send_cmd_comp_event() 455 result.buf_addr = kmem_cache_zalloc(mhi_cntrl->tre_buf_cache, GFP_KERNEL | GFP_DMA); in mhi_ep_process_ch_ring() 865 item = kmem_cache_zalloc(mhi_cntrl->ring_item_cache, GFP_ATOMIC); in mhi_ep_queue_channel_db()
|
/linux-6.6.21/kernel/ |
D | user.c | 200 new = kmem_cache_zalloc(uid_cachep, GFP_KERNEL); in alloc_uid()
|
/linux-6.6.21/drivers/gpu/drm/scheduler/ |
D | sched_fence.c | 213 fence = kmem_cache_zalloc(sched_fence_slab, GFP_KERNEL); in drm_sched_fence_alloc()
|
/linux-6.6.21/fs/smb/server/ |
D | ksmbd_work.c | 21 struct ksmbd_work *work = kmem_cache_zalloc(work_cache, GFP_KERNEL); in ksmbd_alloc_work_struct()
|