Home
last modified time | relevance | path

Searched refs:LLIST_NODE_SZ (Results 1 – 1 of 1) sorted by relevance

/Linux-v6.1/kernel/bpf/
Dmemalloc.c36 #define LLIST_NODE_SZ sizeof(struct llist_node) macro
372 percpu_size = LLIST_NODE_SZ + sizeof(void *); in bpf_mem_alloc_init()
374 size += LLIST_NODE_SZ; /* room for llist_node */ in bpf_mem_alloc_init()
575 struct llist_node *llnode = ptr - LLIST_NODE_SZ; in unit_free()
579 BUILD_BUG_ON(LLIST_NODE_SZ > 8); in unit_free()
613 idx = bpf_mem_cache_idx(size + LLIST_NODE_SZ); in bpf_mem_alloc()
618 return !ret ? NULL : ret + LLIST_NODE_SZ; in bpf_mem_alloc()
628 idx = bpf_mem_cache_idx(ksize(ptr - LLIST_NODE_SZ)); in bpf_mem_free()
640 return !ret ? NULL : ret + LLIST_NODE_SZ; in bpf_mem_cache_alloc()