| /linux-6.15/scripts/coccinelle/api/ |
| H A D | kvmalloc.cocci | 4 /// Suggest to use kvmalloc instead. Same for kvfree. 23 @kvmalloc depends on !patch@ 98 + E = kvmalloc(size, flags); 104 + E = kvmalloc(size, GFP_KERNEL); 109 + E = kvmalloc(size, flags); 114 + E = kvmalloc(size, GFP_KERNEL); 119 + T x = kvmalloc(size, flags); 124 + T x = kvmalloc(size, GFP_KERNEL); 235 p << kvmalloc.p; 241 p << kvmalloc.p; [all …]
|
| H A D | kfree_mismatch.cocci | 3 /// Check that kvmalloc'ed memory is freed by kfree functions, 4 /// vmalloc'ed by vfree functions and kvmalloc'ed by kvfree 57 E = \(kvmalloc\|kvzalloc\|kvcalloc\|kvzalloc_node\|kvmalloc_node\| 123 * E = \(kvmalloc\|kvzalloc\|kvcalloc\|kvzalloc_node\|kvmalloc_node\| 133 E = \(kvmalloc\|kvzalloc\|kvcalloc\|kvzalloc_node\|kvmalloc_node\| 201 msg = "WARNING kvmalloc is used to allocate this memory at line %s" % (a[0].line) 209 msg = "WARNING kvmalloc is used to allocate this memory at line %s" % (a[0].line)
|
| H A D | memdup_user.cocci | 56 - to = \(kvmalloc@p\|kvzalloc@p\)(size,\(GFP_KERNEL\|GFP_USER\)); 92 * to = \(kvmalloc@p\|kvzalloc@p\)(size,\(GFP_KERNEL\|GFP_USER\));
|
| /linux-6.15/Documentation/translations/zh_CN/core-api/ |
| H A D | memory-allocation.rst | 126 如果你不确定分配的大小对 `kmalloc` 来说是否太大,可以使用kvmalloc()及其派生函数。它将尝 127 试用kmalloc分配内存,如果分配失败,将用 `vmalloc` 重新尝试。对于哪些GFP标志可以与 `kvmalloc` 128 一起使用是有限制的;请看kvmalloc_node()参考文档。注意, `kvmalloc` 可能会返回物理上不连 137 和 `kvmalloc` 分配的内存。slab缓存应该用kmem_cache_free()来释放。不要忘记用
|
| /linux-6.15/drivers/staging/media/atomisp/pci/ |
| H A D | sh_css_metrics.c | 62 histogram->run = kvmalloc(length * sizeof(*histogram->run), in make_histogram() 66 histogram->stall = kvmalloc(length * sizeof(*histogram->stall), in make_histogram() 70 histogram->msink = kvmalloc(length * sizeof(*histogram->msink), in make_histogram()
|
| H A D | sh_css_param_dvs.c | 25 dvs_config = kvmalloc(sizeof(struct ia_css_dvs_6axis_config), in alloc_dvs_6axis_table() 52 dvs_config->xcoords_y = kvmalloc(width_y * height_y * sizeof(uint32_t), in alloc_dvs_6axis_table() 60 dvs_config->ycoords_y = kvmalloc(width_y * height_y * sizeof(uint32_t), in alloc_dvs_6axis_table() 71 dvs_config->xcoords_uv = kvmalloc(width_uv * height_uv * sizeof(uint32_t), in alloc_dvs_6axis_table() 79 dvs_config->ycoords_uv = kvmalloc(width_uv * height_uv * sizeof(uint32_t), in alloc_dvs_6axis_table()
|
| H A D | sh_css_params.c | 1372 me = kvmalloc(sizeof(*me), GFP_KERNEL); in ia_css_morph_table_allocate() 1384 me->coordinates_x[i] = kvmalloc(height * width * in ia_css_morph_table_allocate() 1387 me->coordinates_y[i] = kvmalloc(height * width * in ia_css_morph_table_allocate() 1519 me = kvmalloc(sizeof(*me), GFP_KERNEL); in ia_css_isp_3a_statistics_map_allocate() 1528 me->data_ptr = kvmalloc(isp_stats->size, GFP_KERNEL); in ia_css_isp_3a_statistics_map_allocate() 2203 md = kvmalloc(sizeof(*md), GFP_KERNEL); in ia_css_metadata_allocate() 4248 me->hor_coefs = kvmalloc(grid->num_hor_coefs * in ia_css_dvs_coefficients_allocate() 4254 me->ver_coefs = kvmalloc(grid->num_ver_coefs * in ia_css_dvs_coefficients_allocate() 4289 me->hor_prod.odd_real = kvmalloc(grid->aligned_width * in ia_css_dvs2_statistics_allocate() 4296 me->hor_prod.odd_imag = kvmalloc(grid->aligned_width * in ia_css_dvs2_statistics_allocate() [all …]
|
| H A D | sh_css_host_data.c | 19 me->address = kvmalloc(size, GFP_KERNEL); in ia_css_host_data_allocate()
|
| /linux-6.15/scripts/coccinelle/api/alloc/ |
| H A D | alloc_cast.cocci | 37 kvmalloc\|kvzalloc\|kvmalloc_node\|kvzalloc_node\|pci_alloc_consistent\| 60 kvmalloc\|kvzalloc\|kvmalloc_node\|kvzalloc_node\|pci_alloc_consistent\| 83 kvmalloc\|kvzalloc\|kvmalloc_node\|kvzalloc_node\|pci_alloc_consistent\| 100 kvmalloc\|kvzalloc\|kvmalloc_node\|kvzalloc_node\|pci_alloc_consistent\|
|
| H A D | zalloc-simple.cocci | 39 devm_kmalloc(...,E1,...)\|kvmalloc(E1, ...)\|kvmalloc_node(E1,...)\); 109 - x = kvmalloc(E1,E2); 112 - x = (T *)kvmalloc(E1,E2); 115 - x = (T)kvmalloc(E1,E2); 362 x = (T)kvmalloc@p(E1,E2); 380 msg="WARNING: kvzalloc should be used for %s, instead of kvmalloc/memset" % (x)
|
| /linux-6.15/fs/bcachefs/ |
| H A D | buckets_waiting_for_journal.c | 109 n = kvmalloc(sizeof(*n) + (sizeof(n->d[0]) << new_bits), GFP_KERNEL); in bch2_set_bucket_needs_journal_commit() 166 b->t = kvmalloc(sizeof(*b->t) + in bch2_fs_buckets_waiting_for_journal_init()
|
| /linux-6.15/drivers/net/wireguard/ |
| H A D | peerlookup.c | 24 struct pubkey_hashtable *table = kvmalloc(sizeof(*table), GFP_KERNEL); in wg_pubkey_hashtable_alloc() 85 struct index_hashtable *table = kvmalloc(sizeof(*table), GFP_KERNEL); in wg_index_hashtable_alloc()
|
| /linux-6.15/drivers/net/ethernet/mellanox/mlx4/ |
| H A D | crdump.c | 108 crspace_data = kvmalloc(cr_res_size, GFP_KERNEL); in mlx4_crdump_collect_crspace() 144 health_data = kvmalloc(HEALTH_BUFFER_SIZE, GFP_KERNEL); in mlx4_crdump_collect_fw_health()
|
| /linux-6.15/fs/btrfs/ |
| H A D | lzo.c | 91 workspace->mem = kvmalloc(LZO1X_MEM_COMPRESS, GFP_KERNEL | __GFP_NOWARN); in lzo_alloc_workspace() 92 workspace->buf = kvmalloc(WORKSPACE_BUF_LENGTH, GFP_KERNEL | __GFP_NOWARN); in lzo_alloc_workspace() 93 workspace->cbuf = kvmalloc(WORKSPACE_CBUF_LENGTH, GFP_KERNEL | __GFP_NOWARN); in lzo_alloc_workspace()
|
| /linux-6.15/security/keys/ |
| H A D | big_key.c | 87 buf = kvmalloc(enclen, GFP_KERNEL); in big_key_preparse() 242 buf = kvmalloc(enclen, GFP_KERNEL); in big_key_read()
|
| /linux-6.15/fs/xfs/scrub/ |
| H A D | attr.c | 94 ab->usedmap = kvmalloc(bmp_sz, XCHK_GFP_FLAGS); in xchk_setup_xattr_buf() 99 ab->freemap = kvmalloc(bmp_sz, XCHK_GFP_FLAGS); in xchk_setup_xattr_buf() 105 ab->name = kvmalloc(XATTR_NAME_MAX + 1, XCHK_GFP_FLAGS); in xchk_setup_xattr_buf() 120 new_val = kvmalloc(value_size, XCHK_GFP_FLAGS); in xchk_setup_xattr_buf()
|
| /linux-6.15/net/ceph/ |
| H A D | buffer.c | 20 b->vec.iov_base = kvmalloc(len, gfp); in ceph_buffer_new()
|
| /linux-6.15/crypto/ |
| H A D | lzo.c | 20 ctx = kvmalloc(LZO1X_MEM_COMPRESS, GFP_KERNEL); in lzo_alloc_ctx()
|
| H A D | lzo-rle.c | 20 ctx = kvmalloc(LZO1X_MEM_COMPRESS, GFP_KERNEL); in lzorle_alloc_ctx()
|
| /linux-6.15/kernel/module/ |
| H A D | decompress.c | 103 s.workspace = kvmalloc(zlib_inflate_workspacesize(), GFP_KERNEL); in module_gzip_decompress() 244 wksp = kvmalloc(wksp_size, GFP_KERNEL); in module_zstd_decompress()
|
| /linux-6.15/Documentation/core-api/ |
| H A D | memory-allocation.rst | 162 `kmalloc`, it is possible to use kvmalloc() and its derivatives. It will 165 flags can be used with `kvmalloc`; please see kvmalloc_node() reference 166 documentation. Note that `kvmalloc` may return memory that is not 186 Memory allocated by `kvmalloc` can be freed with `kvfree`.
|
| /linux-6.15/drivers/media/common/videobuf2/ |
| H A D | frame_vector.c | 176 vec = kvmalloc(size, GFP_KERNEL); in frame_vector_create()
|
| /linux-6.15/drivers/char/tpm/eventlog/ |
| H A D | acpi.c | 144 log->bios_event_log = kvmalloc(len, GFP_KERNEL); in tpm_read_log_acpi()
|
| /linux-6.15/fs/ntfs3/ |
| H A D | attrlist.c | 56 le = kvmalloc(al_aligned(lsize), GFP_KERNEL); in ntfs_load_attr_list() 94 le = kvmalloc(al_aligned(lsize), GFP_KERNEL); in ntfs_load_attr_list()
|
| /linux-6.15/drivers/staging/media/atomisp/pci/isp/kernels/sdis/sdis_1.0/ |
| H A D | ia_css_sdis.host.c | 353 me = kvmalloc(sizeof(*me), GFP_KERNEL); in ia_css_isp_dvs_statistics_map_allocate() 363 me->data_ptr = kvmalloc(isp_stats->size, GFP_KERNEL); in ia_css_isp_dvs_statistics_map_allocate()
|