Home
last modified time | relevance | path

Searched refs:kmalloc_node (Results 1 – 25 of 43) sorted by relevance

12

/linux-6.6.21/scripts/coccinelle/api/
Dkvmalloc.cocci35 * E = \(kmalloc\|kzalloc\|kcalloc\|kmalloc_node\|kzalloc_node\|
45 * E = \(kmalloc\|kzalloc\|kcalloc\|kmalloc_node\|kzalloc_node\|
57 * T x = \(kmalloc\|kzalloc\|kcalloc\|kmalloc_node\|kzalloc_node\|
159 - E = kmalloc_node(size, flags, node);
165 - E = kmalloc_node(size, \(GFP_KERNEL\|GFP_KERNEL|__GFP_NOWARN\), node);
170 - E = kmalloc_node(size, flags | __GFP_NOWARN, node);
175 - E = kmalloc_node(size, \(GFP_KERNEL\|GFP_KERNEL|__GFP_NOWARN\), node);
180 - T x = kmalloc_node(size, flags | __GFP_NOWARN, node);
185 - T x = kmalloc_node(size, \(GFP_KERNEL\|GFP_KERNEL|__GFP_NOWARN\), node);
Dkfree_mismatch.cocci26 kmalloc_node\|kzalloc_node\|kmalloc_array\|
38 E = \(kmalloc\|kzalloc\|krealloc\|kcalloc\|kmalloc_node\|kzalloc_node\|
68 * E = \(kmalloc\|kzalloc\|krealloc\|kcalloc\|kmalloc_node\|
82 E = \(kmalloc\|kzalloc\|krealloc\|kcalloc\|kmalloc_node\|
/linux-6.6.21/scripts/coccinelle/api/alloc/
Dalloc_cast.cocci7 //# kmem_cache_alloc_node, kmalloc_node and kzalloc_node and removes
35 kmem_cache_alloc_node\|kmalloc_node\|kzalloc_node\|vmalloc\|vzalloc\|
58 kmem_cache_alloc_node\|kmalloc_node\|kzalloc_node\|vmalloc\|vzalloc\|
81 kmem_cache_alloc_node\|kmalloc_node\|kzalloc_node\|vmalloc\|vzalloc\|
98 kmem_cache_alloc_node\|kmalloc_node\|kzalloc_node\|vmalloc\|vzalloc\|
Dzalloc-simple.cocci38 kmalloc_node(E1, ...)\|kmem_cache_alloc(...)\|kmem_alloc(E1, ...)\|
73 - x = kmalloc_node(E1,E2,E3);
76 - x = (T *)kmalloc_node(E1,E2,E3);
79 - x = (T)kmalloc_node(E1,E2,E3);
242 x = (T)kmalloc_node@p(E1,E2,E3);
260 msg="WARNING: kzalloc_node should be used for %s, instead of kmalloc_node/memset" % (x)
/linux-6.6.21/scripts/coccinelle/null/
Deno.cocci21 …|kcalloc\|kmem_cache_alloc\|kmem_cache_zalloc\|kmem_cache_alloc_node\|kmalloc_node\|kzalloc_node\)…
31 …|kmem_cache_alloc@p1\|kmem_cache_zalloc@p1\|kmem_cache_alloc_node@p1\|kmalloc_node@p1\|kzalloc_nod…
/linux-6.6.21/include/linux/
Dslab.h606 static __always_inline __alloc_size(1) void *kmalloc_node(size_t size, gfp_t flags, int node) in kmalloc_node() function
696 return kmalloc_node(bytes, flags, node); in kmalloc_array_node()
731 return kmalloc_node(size, flags | __GFP_ZERO, node); in kzalloc_node()
/linux-6.6.21/lib/
Dcpumask.c61 *mask = kmalloc_node(cpumask_size(), flags, node); in alloc_cpumask_var_node()
Dfortify_kunit.c154 kmalloc_node(alloc_size, gfp, NUMA_NO_NODE), \
Dgenalloc.c157 pool = kmalloc_node(sizeof(struct gen_pool), GFP_KERNEL, nid); in gen_pool_create()
/linux-6.6.21/drivers/infiniband/sw/rdmavt/
Dmmap.c124 ip = kmalloc_node(sizeof(*ip), GFP_KERNEL, rdi->dparms.node); in rvt_create_mmap_info()
/linux-6.6.21/arch/x86/platform/uv/
Duv_irq.c86 chip_data = kmalloc_node(sizeof(*chip_data), GFP_KERNEL, in uv_domain_alloc()
Duv_time.c150 head = kmalloc_node(struct_size(head, cpu, in uv_rtc_allocate_timers()
/linux-6.6.21/kernel/events/
Dcallchain.c90 entries->cpu_entries[cpu] = kmalloc_node(size, GFP_KERNEL, in alloc_callchain_buffers()
/linux-6.6.21/net/sunrpc/xprtrdma/
Dsvc_rdma_recvfrom.c133 ctxt = kmalloc_node(sizeof(*ctxt), GFP_KERNEL, node); in svc_rdma_recv_ctxt_alloc()
136 buffer = kmalloc_node(rdma->sc_max_req_size, GFP_KERNEL, node); in svc_rdma_recv_ctxt_alloc()
Dsvc_rdma_rw.c65 ctxt = kmalloc_node(struct_size(ctxt, rw_first_sgl, SG_CHUNK_SIZE), in svc_rdma_get_rw_ctxt()
238 info = kmalloc_node(sizeof(*info), GFP_KERNEL, in svc_rdma_write_info_alloc()
309 info = kmalloc_node(sizeof(*info), GFP_KERNEL, in svc_rdma_read_info_alloc()
Dsvc_rdma_sendto.c132 ctxt = kmalloc_node(struct_size(ctxt, sc_sges, rdma->sc_max_send_sges), in svc_rdma_send_ctxt_alloc()
136 buffer = kmalloc_node(rdma->sc_max_req_size, GFP_KERNEL, node); in svc_rdma_send_ctxt_alloc()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx4/
Dpd.c190 uar = kmalloc_node(sizeof(*uar), GFP_KERNEL, node); in mlx4_bf_alloc()
Dicm.c144 icm = kmalloc_node(sizeof(*icm), in mlx4_alloc_icm()
/linux-6.6.21/kernel/bpf/
Dmemalloc.c139 void **obj = kmalloc_node(c->percpu_size, flags, node); in __alloc()
151 return kmalloc_node(c->unit_size, flags | __GFP_ZERO, node); in __alloc()
/linux-6.6.21/net/iucv/
Diucv.c597 iucv_irq_data[cpu] = kmalloc_node(sizeof(struct iucv_irq_data), in iucv_cpu_prepare()
603 iucv_param[cpu] = kmalloc_node(sizeof(union iucv_param), in iucv_cpu_prepare()
608 iucv_param_irq[cpu] = kmalloc_node(sizeof(union iucv_param), in iucv_cpu_prepare()
/linux-6.6.21/mm/
Dslab.c538 ac = kmalloc_node(memsize, gfp, node); in alloc_arraycache()
634 alc = kmalloc_node(memsize, gfp, node); in __alloc_alien_cache()
821 n = kmalloc_node(sizeof(struct kmem_cache_node), gfp, node); in init_cache_node()
1154 ptr = kmalloc_node(sizeof(struct kmem_cache_node), GFP_NOWAIT, nodeid); in init_list()
1760 cachep->node[node] = kmalloc_node( in setup_cpu_cache()
2287 freelist = kmalloc_node(cachep->freelist_size, in alloc_slabmgmt()
Dzswap.c457 dst = kmalloc_node(PAGE_SIZE * 2, GFP_KERNEL, cpu_to_node(cpu)); in zswap_dstmem_prepare()
461 mutex = kmalloc_node(sizeof(*mutex), GFP_KERNEL, cpu_to_node(cpu)); in zswap_dstmem_prepare()
/linux-6.6.21/tools/perf/Documentation/
Dexamples.txt16 kmem:kmalloc_node [Tracepoint event]
/linux-6.6.21/Documentation/trace/
Devents-kmem.rst22 kmalloc_node call_site=%lx ptr=%p bytes_req=%zu bytes_alloc=%zu gfp_flags=%s node=%d
/linux-6.6.21/kernel/
Dtaskstats.c314 s = kmalloc_node(sizeof(struct listener), in add_del_listener()

12