Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 36 files:
- arch/arm/kernel/setup.c
- arch/arm/xen/enlighten.c, line 398
- arch/arm64/kernel/setup.c
- arch/mips/mti-malta/malta-setup.c, line 216
- arch/mips/sni/rm200.c
- arch/parisc/kernel/drivers.c, line 543
- arch/powerpc/mm/mem.c, line 346
- arch/riscv/kernel/setup.c, line 76
- arch/s390/kernel/setup.c, line 546
- arch/sparc/mm/init_64.c
- arch/x86/kernel/acpi/boot.c, line 965
- arch/x86/kernel/apic/apic.c, line 2672
- arch/x86/kernel/apic/io_apic.c, line 2599
- arch/x86/kernel/e820.c, line 1144
- arch/x86/kernel/setup.c
- arch/x86/pci/mmconfig-shared.c, line 764
- drivers/acpi/ioapic.c, line 158
- drivers/acpi/nfit/core.c, line 2554
- drivers/base/platform.c, line 822
- drivers/cxl/acpi.c, line 356
- drivers/cxl/core/region.c, line 3720
- drivers/cxl/pmem.c, line 422
- drivers/firmware/efi/arm-runtime.c, line 126
- drivers/firmware/efi/riscv-runtime.c, line 96
- drivers/fpga/dfl.c, line 391
- drivers/irqchip/irq-i8259.c
- drivers/macintosh/macio_asic.c, line 340
- drivers/parisc/ccio-dma.c
- drivers/parisc/iommu.h, line 47
- drivers/pci/quirks.c, line 1921
- drivers/pinctrl/qcom/pinctrl-sc8180x.c, line 1663
- kernel/crash_core.c
- kernel/crash_reserve.c
- kernel/resource.c, line 1017
- kernel/resource_kunit.c, line 214
- tools/testing/nvdimm/test/iomap.c, line 327
Smatch caller information:
arch/x86/kernel/apic/io_apic.c ioapic_insert_resources() -> insert_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | parent | 2936731392875139072 |
| PARAM_VALUE | 1 | new | 4096-u64max |
| NOCHECK_CALL |
drivers/pinctrl/qcom/pinctrl-sc8180x.c sc8180x_pinctrl_add_tile_resources() -> insert_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | new | 4096-ptr_max |
| BUF_SIZE | 1 | new | 0-u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
kernel/resource_kunit.c resource_test_insert_resource() -> insert_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | parent | 4096-ptr_max |
| PARAM_VALUE | 1 | new | 4096-ptr_max |
| PARAM_VALUE | 1 | new->flags | 512,2164261376 |
| PARAM_VALUE | 1 | new->name | 4033884149068664832,6931449040700190720,8073395378210271232 |
| BUF_SIZE | 0 | parent | 64 |
| BUF_SIZE | 1 | new | 64 |
| BUF_SIZE | 1 | new->name | 10,18 |
| DATA_SOURCE | 0 | parent | $1 |
| DATA_SOURCE | 1 | new | r _kzalloc_noprof |
| TERMINATED | 1 | new->name | 1 |
arch/x86/kernel/acpi/boot.c hpet_insert_resource() -> insert_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | parent | 2936731392875139072 |
| PARAM_VALUE | 1 | new | 1-u64max |
kernel/crash_core.c __crash_shrink_memory() -> insert_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | parent | 2936731392875139072 |
| PARAM_VALUE | 1 | new | 4096-ptr_max |
| PARAM_VALUE | 1 | new->flags | 2164261376 |
| PARAM_VALUE | 1 | new->name | 5469475395852980224 |
| BUF_SIZE | 1 | new | 64 |
| BUF_SIZE | 1 | new->name | 11 |
| CAPPED_DATA | 1 | new->end | 1 |
| DATA_SOURCE | 1 | new | r _kzalloc_noprof |
| STR_LEN | 1 | new->name | 10 |
| TERMINATED | 1 | new->name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
kernel/crash_core.c crash_shrink_memory() -> insert_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | parent | 2936731392875139072 |
| PARAM_VALUE | 1 | new | 6145504372922150912 |
| PARAM_VALUE | 1 | new->end | 1-u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
arch/x86/kernel/apic/apic.c lapic_insert_resource() -> insert_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | parent | 2936731392875139072 |
| PARAM_VALUE | 1 | new | 6416040434385113088 |
| PARAM_VALUE | 1 | new->end | 18446744073699053567 |
| PARAM_VALUE | 1 | new->start | 18446744073699049472 |
| NOCHECK_CALL |
drivers/cxl/core/region.c __construct_region() -> insert_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | new | 4096-ptr_max |
| BUF_SIZE | 1 | new | 64 |
| DATA_SOURCE | 1 | new | r _kmalloc_noprof |
| LOCK2 | _T->lock |
drivers/cxl/acpi.c add_or_reset_cxl_resource() -> insert_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | new | 4096-ptr_max |
| DATA_SOURCE | 0 | parent | $0 |
| DATA_SOURCE | 1 | new | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/fpga/dfl.c dfl_dev_add() -> insert_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | parent | 4096-ptr_max |
| PARAM_VALUE | 1 | new | 4096-ptr_max |
| PARAM_VALUE | 1 | new->flags | 512 |
| PARAM_VALUE | 1 | new->name | 1-u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/base/platform.c platform_device_add() -> insert_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | parent | 1-u64max |
| PARAM_VALUE | 1 | new | 4096-ptr_max |
| BUF_SIZE | 0 | parent | (-1),64 |
| BUF_SIZE | 0 | parent | (-1),64 |
| BUF_SIZE | 1 | new->name | (-1),1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &cdns->mutex | ||
| HALF_LOCKED2 | &dev->mutex | ||
| HALF_LOCKED2 | &fdata->lock | ||
| HALF_LOCKED2 | global &disable_lock | ||
| HALF_LOCKED2 | global ð_lock | ||
| HALF_LOCKED2 | global &hmem_resource_lock | ||
| HALF_LOCKED2 | global &smi_watchers_mutex |
drivers/nvdimm/../../tools/testing/nvdimm/test/iomap.c __wrap_insert_resource() -> insert_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | new | 4096-ptr_max |
| DATA_SOURCE | 0 | parent | $0 |
| DATA_SOURCE | 1 | new | $1 |
arch/x86/kernel/e820.c e820__reserve_resources() -> insert_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | parent | 2936731392875139072 |
| PARAM_VALUE | 1 | new | 4096-ptr_max |
| PARAM_VALUE | 1 | new->desc | 0,2-5,7-8 |
| PARAM_VALUE | 1 | new->flags | 2147484160,2164261376 |
| PARAM_VALUE | 1 | new->name | 4096-ptr_max |
| BUF_SIZE | 1 | new->name | 9,11-12,14,16,18,26-27 |
| CAPPED_DATA | 1 | new->end | 1 |
| BIT_INFO | 1 | new->flags | 0x80000000,0x81ffffff |
| NOCHECK_CALL | |||
| LOCK2 | irq |
drivers/acpi/nfit/core.c acpi_nfit_insert_resource() -> insert_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | parent | 2936731392875139072 |
| PARAM_VALUE | 1 | new | 4096-ptr_max |
| PARAM_VALUE | 1 | new->desc | 4 |
| PARAM_VALUE | 1 | new->flags | 512 |
| PARAM_VALUE | 1 | new->name | 6259688732314566656 |
| BUF_SIZE | 1 | new | 64 |
| BUF_SIZE | 1 | new->name | 18 |
| DATA_SOURCE | 1 | new | r devm_kzalloc |
| STR_LEN | 1 | new->name | 17 |
| TERMINATED | 1 | new->name | 1 |
| MEM_ZERO | 1 | new | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &acpi_desc->init_mutex | ||
| LOCK2 | _T->lock | ||
| TYPE_LOCK | (struct acpi_nfit_desc)->init_mutex |
arch/x86/pci/mmconfig-shared.c pci_mmcfg_late_insert_resources() -> insert_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | parent | 2936731392875139072 |
| PARAM_VALUE | 1 | new | 4096-ptr_max |
| PARAM_VALUE | 1 | new->parent | 0 |
| NOCHECK_CALL |
drivers/pci/quirks.c quirk_alder_ioapic() -> insert_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | parent | 2936731392875139072 |
| PARAM_VALUE | 1 | new | 4096-ptr_max |
| BUF_SIZE | 1 | new | 1088 |
| NOCHECK_CALL |
arch/x86/kernel/setup.c setup_kernel_resources() -> insert_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | parent | 2936731392875139072 |
| PARAM_VALUE | 1 | new | 9038959315616325632 |
| NOCHECK_CALL | |||
| LOCK2 | irq |
arch/x86/kernel/setup.c setup_kernel_resources() -> insert_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | parent | 2936731392875139072 |
| PARAM_VALUE | 1 | new | 586393401598005248 |
| NOCHECK_CALL | |||
| LOCK2 | irq |
arch/x86/kernel/setup.c setup_kernel_resources() -> insert_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | parent | 2936731392875139072 |
| PARAM_VALUE | 1 | new | 4751059925107548160 |
| NOCHECK_CALL | |||
| LOCK2 | irq |
arch/x86/kernel/setup.c setup_kernel_resources() -> insert_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | parent | 2936731392875139072 |
| PARAM_VALUE | 1 | new | 6945203251765100544 |
| NOCHECK_CALL | |||
| LOCK2 | irq |
drivers/cxl/pmem.c cxl_pmem_region_probe() -> insert_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | parent | 2936731392875139072 |
| PARAM_VALUE | 1 | new | 4096-ptr_max |
| PARAM_VALUE | 1 | new->desc | 4 |
| PARAM_VALUE | 1 | new->flags | 512 |
| PARAM_VALUE | 1 | new->name | 6259688732314566656 |
| BUF_SIZE | 1 | new | 64 |
| BUF_SIZE | 1 | new->name | 18 |
| DATA_SOURCE | 1 | new | r devm_kzalloc |
| STR_LEN | 1 | new->name | 17 |
| TERMINATED | 1 | new->name | 1 |
| MEM_ZERO | 1 | new | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &dev->mutex |
kernel/crash_reserve.c reserve_crashkernel_generic() -> insert_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | parent | 2936731392875139072 |
| PARAM_VALUE | 1 | new | 6145504372922150912 |
| PARAM_VALUE | 1 | new->start | 1-u64max |
| NOCHECK_CALL | |||
| USER_DATA | 1 | new->start | 4096-9223372036854775806[c] |
| LOCK2 | irq |
kernel/crash_reserve.c reserve_crashkernel_low() -> insert_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | parent | 2936731392875139072 |
| PARAM_VALUE | 1 | new | 8618626533416660992 |
| PARAM_VALUE | 1 | new->start | 1-u64max |
| NOCHECK_CALL | |||
| USER_DATA | 1 | new->start | 4096-9223372036854775806[c] |
| LOCK2 | irq |
drivers/acpi/ioapic.c handle_ioapic_add() -> insert_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | parent | 2936731392875139072 |
| PARAM_VALUE | 1 | new | 4096-ptr_max |
| PARAM_VALUE | 1 | new->flags | 18446744071562067968-u64max |
| PARAM_VALUE | 1 | new->name | 663786227929305088,1395802031074283520 |
| BUF_SIZE | 1 | new | 64 |
| BIT_INFO | 1 | new->flags | 0x80000000,0xffffffffffffffff |
| TERMINATED | 1 | new->name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &ioapic_list_lock |