Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

kernel/resource.c adjust_resource() -> __adjust_resource()

Type Parameter Key Value
BUF_SIZE 0 res (-1),64
BUF_SIZE 0 res (-1),64
DATA_SOURCE 0 res $0
DATA_SOURCE 1 start $1
DATA_SOURCE 2 size $2
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &resource_lock
HALF_LOCKED2 &dev->mutex
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 &s->ops_mutex
HALF_LOCKED2 global &dax_dev_rwsem
HALF_LOCKED2 global &dax_region_rwsem
HALF_LOCKED2 global &gpmc_mem_lock

kernel/resource.c release_mem_region_adjustable() -> __adjust_resource()

Type Parameter Key Value
PARAM_VALUE 0 res 4096-ptr_max
PARAM_VALUE 0 res->end 1-u64max
PARAM_VALUE 0 res->start 0-18446744073709551614
PARAM_VALUE 2 size 1-9223372036854775806
CAPPED_DATA 0 res->start 1
CAPPED_DATA 1 start 1
PARAM_COMPARE 0 res->end > $0->start
BIT_INFO 0 res->flags 0x80000200,0xffffffffffffffff
RX_PATH
TASK_NOT_RUNNING
UNITS 1 start unit_byte
UNITS 2 size unit_byte
LOCK2 global &resource_lock
HALF_LOCKED2 global &device_hotplug_lock

kernel/resource.c release_mem_region_adjustable() -> __adjust_resource()

Type Parameter Key Value
PARAM_VALUE 0 res 4096-ptr_max
PARAM_VALUE 0 res->end 1-u64max
PARAM_VALUE 0 res->start 0-18446744073709551614
PARAM_VALUE 1 start 0-18446744073709551614
CAPPED_DATA 0 res->end 1
CAPPED_DATA 0 res->start 1
CAPPED_DATA 1 start 1
CAPPED_DATA 1 start 1
PARAM_COMPARE 0 res->end > $0->start
PARAM_COMPARE 1 start < $0->end
BIT_INFO 0 res->flags 0x80000200,0xffffffffffffffff
RX_PATH
TASK_NOT_RUNNING
UNITS 1 start unit_byte
UNITS 2 size unit_byte
LOCK2 global &resource_lock
HALF_LOCKED2 global &device_hotplug_lock

kernel/resource.c release_mem_region_adjustable() -> __adjust_resource()

Type Parameter Key Value
PARAM_VALUE 0 res 4096-ptr_max
PARAM_VALUE 0 res->end 1-u64max
PARAM_VALUE 0 res->start 0-18446744073709551614
PARAM_VALUE 1 start 0-18446744073709551614
CAPPED_DATA 0 res->start 1
CAPPED_DATA 1 start 1
CAPPED_DATA 1 start 1
PARAM_COMPARE 0 res->end > $0->start
PARAM_COMPARE 1 start < $0->end
BIT_INFO 0 res->flags 0x80000200,0xffffffffffffffff
RX_PATH
TASK_NOT_RUNNING
UNITS 1 start unit_byte
UNITS 2 size unit_byte
LOCK2 global &resource_lock
HALF_LOCKED2 global &device_hotplug_lock