Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 18 files:

Smatch caller information:

drivers/pcmcia/rsrc_nonstatic.c __nonstatic_find_io_region() -> allocate_resource()

Type Parameter Key Value
PARAM_VALUE 0 root 8636791340006543360
PARAM_VALUE 1 new 4096-ptr_max
PARAM_VALUE 1 new->end 0-2147483646,18446744071562067967-u64max
PARAM_VALUE 1 new->flags 256
PARAM_VALUE 1 new->start 0
PARAM_VALUE 2 size 0-s32max,18446744071562067968-u64max
PARAM_VALUE 3 min 0-u32max
PARAM_VALUE 4 max u64max
PARAM_VALUE 5 align 1
PARAM_VALUE 7 alignf_data 4701412803410690048
BUF_SIZE 1 new 64
BUF_SIZE 7 alignf_data 24
CAPPED_DATA 3 min 1
DATA_SOURCE 1 new r pcmcia_make_resource
DATA_SOURCE 2 size $2
DATA_SOURCE 3 min $1
RX_PATH
TASK_NOT_RUNNING
UNITS 2 size unit_byte
LOCK2 &s->ops_mutex
TYPE_LOCK (struct pcmcia_socket)->ops_mutex

drivers/pcmcia/rsrc_nonstatic.c nonstatic_find_mem_region() -> allocate_resource()

Type Parameter Key Value
PARAM_VALUE 0 root 2936731392875139072
PARAM_VALUE 1 new 4096-ptr_max
PARAM_VALUE 4 max 1048576,u64max
PARAM_VALUE 5 align 1
PARAM_VALUE 7 alignf_data 5853589550523351040
BUF_SIZE 1 new 64
BUF_SIZE 7 alignf_data 24
CAPPED_DATA 3 min 1
DATA_SOURCE 1 new r pcmcia_make_resource
DATA_SOURCE 2 size $1
FUZZY_MAX 4 max u64max
PARAM_COMPARE 3 min <= $4
PARAM_COMPARE 4 max >= $3
PARAM_COMPARE 4 max >= $3
BIT_INFO 4 max 0x100000,0xffffffffffffffff
BIT_INFO 4 max 0x100000,0xffffffffffffffff
HARD_MAX 4 max u64max
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 2 size
UNITS 2 size unit_byte
LOCK2 &s->ops_mutex
HALF_LOCKED2 &s->skt_mutex
TYPE_LOCK (struct pcmcia_socket)->ops_mutex

drivers/pci/bus.c pci_bus_alloc_from_region() -> allocate_resource()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
PARAM_VALUE 1 new 4096-ptr_max
PARAM_VALUE 7 alignf_data 0,4096-ptr_max
BUF_SIZE 1 new (-1),64
BUF_SIZE 1 new (-1),64
BUF_SIZE 7 alignf_data (-1),1-s32max
BUF_SIZE 7 alignf_data (-1),1-s32max
CAPPED_DATA 1 new 1
CAPPED_DATA 2 size 1
CAPPED_DATA 2 size 1
CAPPED_DATA 3 min 1
CAPPED_DATA 3 min 1
DATA_SOURCE 0 root r pci_bus_resource_n
DATA_SOURCE 1 new $1
DATA_SOURCE 2 size $2
DATA_SOURCE 5 align $3
DATA_SOURCE 6 alignf $6
DATA_SOURCE 7 alignf_data $7
BIT_INFO 0 root->flags 0x0,0xffffffffcfffffff
NOSPEC 1 new->end
NOSPEC 2 size
NOSPEC 2 size
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 3 min 1-u64max[c]
USER_DATA 1 new->end 1-u64max[c]
USER_DATA 2 size 1-s32max[c]
NO_OVERFLOW_SIMPLE 1 new->end
NO_OVERFLOW_SIMPLE 2 size
UNITS 2 size unit_byte
UNITS 5 align unit_byte
UNITS 7 alignf_data unit_byte
HALF_LOCKED2 &image->lock
HALF_LOCKED2 &s->ops_mutex

drivers/watchdog/via_wdt.c wdt_probe() -> allocate_resource()

Type Parameter Key Value
PARAM_VALUE 0 root 2936731392875139072
PARAM_VALUE 1 new 1338615780754501632
PARAM_VALUE 1 new->name 9140709341232734208
PARAM_VALUE 2 size 8
PARAM_VALUE 3 min 4026531840
PARAM_VALUE 4 max 4294967040
PARAM_VALUE 5 align 255
PARAM_VALUE 6 alignf 0
PARAM_VALUE 7 alignf_data 0
TERMINATED 1 new->name 1
RX_PATH
TASK_NOT_RUNNING

drivers/input/joystick/iforce/iforce-ff.c make_condition_modifier() -> allocate_resource()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
PARAM_VALUE 1 new 4096-ptr_max
PARAM_VALUE 2 size 8
PARAM_VALUE 5 align 2
PARAM_VALUE 6 alignf 0
PARAM_VALUE 7 alignf_data 0
BUF_SIZE 1 new 64
DATA_SOURCE 1 new $1
LOCK2 &evdev->mutex
LOCK2 _T->lock
TYPE_LOCK (struct evdev)->mutex

drivers/input/joystick/iforce/iforce-ff.c make_envelope_modifier() -> allocate_resource()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
PARAM_VALUE 1 new 4096-ptr_max
PARAM_VALUE 2 size 14
PARAM_VALUE 5 align 2
PARAM_VALUE 6 alignf 0
PARAM_VALUE 7 alignf_data 0
BUF_SIZE 1 new 64
DATA_SOURCE 1 new $1
LOCK2 &evdev->mutex
LOCK2 _T->lock
TYPE_LOCK (struct evdev)->mutex

drivers/input/joystick/iforce/iforce-ff.c make_magnitude_modifier() -> allocate_resource()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
PARAM_VALUE 1 new 4096-ptr_max
PARAM_VALUE 2 size 2
PARAM_VALUE 5 align 2
PARAM_VALUE 6 alignf 0
PARAM_VALUE 7 alignf_data 0
BUF_SIZE 1 new 64
DATA_SOURCE 1 new $1
LOCK2 &evdev->mutex
LOCK2 _T->lock
TYPE_LOCK (struct evdev)->mutex

drivers/input/joystick/iforce/iforce-ff.c make_period_modifier() -> allocate_resource()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
PARAM_VALUE 1 new 4096-ptr_max
PARAM_VALUE 2 size 12
PARAM_VALUE 5 align 2
PARAM_VALUE 6 alignf 0
PARAM_VALUE 7 alignf_data 0
BUF_SIZE 1 new 64
DATA_SOURCE 1 new $1
LOCK2 &evdev->mutex
LOCK2 _T->lock
TYPE_LOCK (struct evdev)->mutex

drivers/xen/balloon.c additional_memory_resource() -> allocate_resource()

Type Parameter Key Value
PARAM_VALUE 0 root 2936731392875139072
PARAM_VALUE 1 new 4096-ptr_max
PARAM_VALUE 1 new->flags 2164261376
PARAM_VALUE 1 new->name 5469475395852980224
PARAM_VALUE 3 min 0
PARAM_VALUE 4 max u64max
PARAM_VALUE 5 align 134217728
PARAM_VALUE 6 alignf 0
PARAM_VALUE 7 alignf_data 0
BUF_SIZE 1 new 64
BUF_SIZE 1 new->name 11
DATA_SOURCE 1 new r _kzalloc_noprof
DATA_SOURCE 2 size $0
STR_LEN 1 new->name 10
TERMINATED 1 new->name 1
RX_PATH
TASK_NOT_RUNNING
UNITS 2 size unit_byte
UNITS 5 align unit_byte
LOCK2 global &balloon_mutex

drivers/gpu/drm/gma500/gtt.c psb_gtt_allocate_resource() -> allocate_resource()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
PARAM_VALUE 1 new 4096-ptr_max
PARAM_VALUE 1 new->name 781628754326274048,4844813632809992192,5413259104979005440
PARAM_VALUE 2 size 0-18446744069414584320
PARAM_VALUE 5 align 4096
PARAM_VALUE 6 alignf 0
PARAM_VALUE 7 alignf_data 0
BUF_SIZE 1 new->name 3-4,7
DATA_SOURCE 1 new $1
DATA_SOURCE 2 size $3
DATA_SOURCE 5 align $4
TERMINATED 1 new->name 1
RX_PATH
TASK_NOT_RUNNING
USER_DATA 2 size 4096-9223372032559808512[c]
UNITS 2 size unit_byte
UNITS 3 min unit_byte
UNITS 4 max unit_byte
UNITS 5 align unit_byte
HALF_LOCKED2 &dev->clientlist_mutex
HALF_LOCKED2 &fb_helper->lock

drivers/memory/omap-gpmc.c gpmc_cs_request() -> allocate_resource()

Type Parameter Key Value
PARAM_VALUE 0 root 1873519632994275328
PARAM_VALUE 1 new 4096-ptr_max
PARAM_VALUE 2 size 0-268435456
PARAM_VALUE 3 min 0
PARAM_VALUE 4 max u64max
PARAM_VALUE 5 align 0-268435456
PARAM_VALUE 6 alignf 0
PARAM_VALUE 7 alignf_data 0
BUF_SIZE 1 new 64
CAPPED_DATA 1 new 1
DATA_SOURCE 2 size r gpmc_mem_align
DATA_SOURCE 5 align r gpmc_mem_align
FUZZY_MAX 2 size 268435456
FUZZY_MAX 5 align 268435456
HARD_MAX 2 size 268435456
HARD_MAX 5 align 268435456
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &gpmc_mem_lock

drivers/xen/unpopulated-alloc.c fill_list() -> allocate_resource()

Type Parameter Key Value
PARAM_VALUE 1 new 4096-ptr_max
PARAM_VALUE 1 new->flags 2147484160
PARAM_VALUE 1 new->name 8001246539107262464
PARAM_VALUE 2 size 0-17592186040320
PARAM_VALUE 5 align 134217728
PARAM_VALUE 6 alignf 0
PARAM_VALUE 7 alignf_data 0
BUF_SIZE 1 new 64
BUF_SIZE 1 new->name 12
DATA_SOURCE 1 new r _kzalloc_noprof
STR_LEN 1 new->name 11
TERMINATED 1 new->name 1
RX_PATH
TASK_NOT_RUNNING
UNITS 2 size unit_byte
UNITS 5 align unit_byte
LOCK2 global &list_lock
HALF_LOCKED2 &mm->mmap_lock

drivers/pcmcia/yenta_socket.c yenta_search_one_res() -> allocate_resource()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
PARAM_VALUE 1 new 4096-ptr_max
PARAM_VALUE 1 new->parent->child 4096-ptr_max
PARAM_VALUE 2 size 32-u32max
PARAM_VALUE 4 max u32max
PARAM_VALUE 5 align 32-u32max
PARAM_VALUE 6 alignf 0
PARAM_VALUE 7 alignf_data 0
BUF_SIZE 1 new->name (-1),48
CAPPED_DATA 1 new 1
CAPPED_DATA 2 size 1
CAPPED_DATA 5 align 1
DATA_SOURCE 0 root $0
DATA_SOURCE 1 new $1
FUZZY_MAX 2 size 512
FUZZY_MAX 5 align 1024
PARAM_COMPARE 2 size <= $5
PARAM_COMPARE 5 align >= $2
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 1 new->start 0-u64max[c]
HALF_LOCKED2 &pool->lock