Defined in 1 files as a function:

Referenced in 29 files:

Smatch caller information:

arch/x86/mm/init_64.c spp_getpage() -> memblock_alloc()

Type Parameter Key Value
PARAM_VALUE 0 size 4096
PARAM_VALUE 1 align 4096
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
UNITS 0 size unit_byte
UNITS 1 align unit_byte
HALF_LOCKED2 irq

mm/percpu.c pcpu_alloc_alloc_info() -> memblock_alloc()

Type Parameter Key Value
PARAM_VALUE 0 size 0,4096-u64max
PARAM_VALUE 1 align 4096
BIT_INFO 0 size 0x0,0xfffffffffffff000
UNITS 1 align unit_byte
LOCK2 irq

mm/percpu.c pcpu_embed_first_chunk() -> memblock_alloc()

Type Parameter Key Value
PARAM_VALUE 0 size 0,4096-17179869184
PARAM_VALUE 1 align 64
CAPPED_DATA 0 size 1
CAPPED_DATA 0 size 1
BIT_INFO 0 size 0x0,0x7fffff000
BIT_INFO 0 size 0x0,0x7fffff000
LOCK2 irq

mm/kfence/core.c kfence_alloc_pool_and_metadata() -> memblock_alloc()

Type Parameter Key Value
PARAM_VALUE 0 size 2097152
PARAM_VALUE 1 align 4096
UNITS 1 align unit_byte
LOCK2 irq

mm/kfence/core.c kfence_alloc_pool_and_metadata() -> memblock_alloc()

Type Parameter Key Value
PARAM_VALUE 0 size 315392
PARAM_VALUE 1 align 4096
UNITS 1 align unit_byte
LOCK2 irq

mm/mm_init.c alloc_large_system_hash() -> memblock_alloc()

Type Parameter Key Value
PARAM_VALUE 1 align 64
NO_OVERFLOW_SIMPLE 0 size
UNITS 0 size unit_byte
HALF_LOCKED2 irq

kernel/printk/printk.c setup_log_buf() -> memblock_alloc()

Type Parameter Key Value
PARAM_VALUE 0 size 1-u64max
PARAM_VALUE 1 align 8
LOCK2 irq

kernel/printk/printk.c setup_log_buf() -> memblock_alloc()

Type Parameter Key Value
PARAM_VALUE 0 size 24-103079215080
PARAM_VALUE 1 align 8
LOCK2 irq

kernel/printk/printk.c setup_log_buf() -> memblock_alloc()

Type Parameter Key Value
PARAM_VALUE 0 size 112-481036337040
PARAM_VALUE 1 align 8
LOCK2 irq

init/main.c print_unknown_bootoptions() -> memblock_alloc()

Type Parameter Key Value
PARAM_VALUE 0 size 0-1010101
PARAM_VALUE 1 align 64
CAPPED_DATA 0 size 1
CAPPED_DATA 0 size 1
LOCK2 irq

init/main.c xbc_make_cmdline() -> memblock_alloc()

Type Parameter Key Value
PARAM_VALUE 0 size 0-s32max,18446744071562067968-u64max
PARAM_VALUE 1 align 64
LOCK2 irq

mm/numa_memblks.c numa_alloc_distance() -> memblock_alloc()

Type Parameter Key Value
PARAM_VALUE 0 size 1-4096
PARAM_VALUE 1 align 4096
UNITS 1 align unit_byte
HALF_LOCKED2 irq

drivers/firmware/memmap.c firmware_map_add_early() -> memblock_alloc()

Type Parameter Key Value
PARAM_VALUE 0 size 288
PARAM_VALUE 1 align 64
UNITS 0 size unit_byte
LOCK2 irq

drivers/usb/early/xhci-dbc.c xdbc_get_page() -> memblock_alloc()

Type Parameter Key Value
PARAM_VALUE 0 size 4096
PARAM_VALUE 1 align 4096
UNITS 0 size unit_byte
UNITS 1 align unit_byte
LOCK2 irq

kernel/dma/swiotlb.c swiotlb_init_remap() -> memblock_alloc()

Type Parameter Key Value
PARAM_VALUE 0 size 0,4096-u64max
PARAM_VALUE 1 align 4096
CAPPED_DATA 0 size 1
CAPPED_DATA 0 size 1
BIT_INFO 0 size 0x0,0xfffffffffffff000
BIT_INFO 0 size 0x0,0xfffffffffffff000
UNITS 1 align unit_byte
LOCK2 irq

kernel/dma/swiotlb.c swiotlb_init_remap() -> memblock_alloc()

Type Parameter Key Value
PARAM_VALUE 0 size 0-377957121960
PARAM_VALUE 1 align 64
LOCK2 irq

kernel/dma/swiotlb.c swiotlb_memblock_alloc() -> memblock_alloc()

Type Parameter Key Value
PARAM_VALUE 0 size 0
PARAM_VALUE 1 align 4096
UNITS 1 align unit_byte
LOCK2 irq

mm/memblock.c __memblock_alloc_or_panic() -> memblock_alloc()

Type Parameter Key Value
DATA_SOURCE 0 size $0
DATA_SOURCE 1 align $1
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 size
UNITS 0 size unit_byte
HALF_LOCKED2 irq

mm/numa_emulation.c numa_emulation() -> memblock_alloc()

Type Parameter Key Value
PARAM_VALUE 1 align 4096
UNITS 1 align unit_byte
LOCK2 irq

arch/x86/kernel/acpi/madt_wakeup.c alloc_pgt_page() -> memblock_alloc()

Type Parameter Key Value
PARAM_VALUE 0 size 4096
PARAM_VALUE 1 align 4096
RX_PATH
TASK_NOT_RUNNING
UNITS 0 size unit_byte
UNITS 1 align unit_byte

kernel/liveupdate/kexec_handover.c kho_radix_alloc_node() -> memblock_alloc()

Type Parameter Key Value
PARAM_VALUE 0 size 4096
PARAM_VALUE 1 align 4096
RX_PATH
UNITS 0 size unit_byte
UNITS 1 align unit_byte
HALF_LOCKED2 _T->lock

kernel/liveupdate/kexec_handover.c kho_reserve_scratch() -> memblock_alloc()

Type Parameter Key Value
PARAM_VALUE 0 size 0-68719476720
PARAM_VALUE 1 align 4096
UNITS 1 align unit_byte
LOCK2 irq

lib/bootconfig.c xbc_alloc_mem() -> memblock_alloc()

Type Parameter Key Value
PARAM_VALUE 0 size 2-s16max,65536
PARAM_VALUE 1 align 64
DATA_SOURCE 0 size $0
LOCK2 irq

drivers/of/of_reserved_mem.c alloc_reserved_mem_array() -> memblock_alloc()

Type Parameter Key Value
PARAM_VALUE 0 size 40-85899345880
PARAM_VALUE 1 align 64
DATA_SOURCE 0 size r size_mul
LOCK2 irq

lib/stackdepot.c stack_depot_early_init() -> memblock_alloc()

Type Parameter Key Value
PARAM_VALUE 0 size 8192-1048568
PARAM_VALUE 1 align 4096
UNITS 1 align unit_byte
LOCK2 irq