Home
last modified time | relevance | path

Searched refs:kmem_cache_zalloc (Results 1 – 25 of 186) sorted by relevance

12345678

/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.cocci83 + 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.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/fs/dlm/
Dmemory.c89 r = kmem_cache_zalloc(rsb_cache, GFP_NOFS); in dlm_allocate_rsb()
104 lkb = kmem_cache_zalloc(lkb_cache, GFP_NOFS); in dlm_allocate_lkb()
/linux-6.1.9/drivers/s390/cio/
Dvfio_ccw_drv.c150 private->io_region = kmem_cache_zalloc(vfio_ccw_io_region, in vfio_ccw_alloc_private()
155 private->cmd_region = kmem_cache_zalloc(vfio_ccw_cmd_region, in vfio_ccw_alloc_private()
160 private->schib_region = kmem_cache_zalloc(vfio_ccw_schib_region, in vfio_ccw_alloc_private()
166 private->crw_region = kmem_cache_zalloc(vfio_ccw_crw_region, in vfio_ccw_alloc_private()
/linux-6.1.9/security/selinux/ss/
Dhashtab.c55 newnode = kmem_cache_zalloc(hashtab_node_cachep, GFP_KERNEL); in __hashtab_insert()
153 tmp = kmem_cache_zalloc(hashtab_node_cachep, in hashtab_duplicate()
Debitmap.c62 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.1.9/mm/
Dmm_slot.h28 return kmem_cache_zalloc(cache, GFP_KERNEL); in mm_slot_alloc()
/linux-6.1.9/virt/kvm/
Dasync_pf.c179 work = kmem_cache_zalloc(async_pf_cache, GFP_NOWAIT | __GFP_NOWARN); in kvm_setup_async_pf()
211 work = kmem_cache_zalloc(async_pf_cache, GFP_ATOMIC); in kvm_async_pf_wakeup_all()
/linux-6.1.9/fs/jffs2/
Dmalloc.c280 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.1.9/fs/ksmbd/
Dksmbd_work.c21 struct ksmbd_work *work = kmem_cache_zalloc(work_cache, GFP_KERNEL); in ksmbd_alloc_work_struct()
/linux-6.1.9/drivers/net/wireguard/
Dallowedips.c190 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()
Dpeer.c33 peer = kmem_cache_zalloc(peer_cache, GFP_KERNEL); in wg_peer_create()
/linux-6.1.9/include/acpi/platform/
Daclinuxex.h67 return kmem_cache_zalloc(cache, in acpi_os_acquire_object()
/linux-6.1.9/security/selinux/
Davc.c300 xpd_node = kmem_cache_zalloc(avc_xperms_decision_cachep, in avc_xperms_decision_alloc()
307 xpd->allowed = kmem_cache_zalloc(avc_xperms_data_cachep, in avc_xperms_decision_alloc()
313 xpd->auditallow = kmem_cache_zalloc(avc_xperms_data_cachep, in avc_xperms_decision_alloc()
319 xpd->dontaudit = kmem_cache_zalloc(avc_xperms_data_cachep, in avc_xperms_decision_alloc()
348 xp_node = kmem_cache_zalloc(avc_xperms_cachep, GFP_NOWAIT | __GFP_NOWARN); in avc_xperms_alloc()
504 node = kmem_cache_zalloc(avc_node_cachep, GFP_NOWAIT | __GFP_NOWARN); in avc_alloc_node()
/linux-6.1.9/fs/ecryptfs/
Dfile.c195 file_info = kmem_cache_zalloc(ecryptfs_file_info_cache, GFP_KERNEL); in ecryptfs_open()
263 file_info = kmem_cache_zalloc(ecryptfs_file_info_cache, GFP_KERNEL); in ecryptfs_dir_open()
/linux-6.1.9/fs/orangefs/
Dorangefs-cache.c120 new_op = kmem_cache_zalloc(op_cache, GFP_KERNEL); in op_alloc()
/linux-6.1.9/arch/powerpc/kernel/
Drtas_flash.c328 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.1.9/drivers/gpu/drm/scheduler/
Dsched_fence.c155 fence = kmem_cache_zalloc(sched_fence_slab, GFP_KERNEL); in drm_sched_fence_alloc()
/linux-6.1.9/fs/gfs2/
Dtrans.c115 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.1.9/drivers/iommu/
Dfsl_pamu_domain.c155 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.1.9/drivers/md/
Ddm-uevent.c48 event = kmem_cache_zalloc(_dm_event_cache, GFP_ATOMIC); in dm_uevent_alloc()
/linux-6.1.9/fs/xfs/
Dxfs_iunlink_item.c164 iup = kmem_cache_zalloc(xfs_iunlink_cache, GFP_KERNEL | __GFP_NOFAIL); in xfs_iunlink_log_inode()
Dxfs_icreate_item.c101 icp = kmem_cache_zalloc(xfs_icreate_cache, GFP_KERNEL | __GFP_NOFAIL); in xfs_icreate_log()
/linux-6.1.9/kernel/
Duser.c199 new = kmem_cache_zalloc(uid_cachep, GFP_KERNEL); in alloc_uid()

12345678