Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 2 files as a function:

Referenced in 6 files:

Smatch caller information:

drivers/xen/xenbus/xenbus_client.c xenbus_map_ring_hvm() -> xen_alloc_unpopulated_pages()

Type Parameter Key Value
PARAM_VALUE 0 nr_pages 0-16
BUF_SIZE 1 pages 128
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &pdev->dev_lock
HALF_LOCKED2 global &xenwatch_mutex

drivers/xen/grant-table.c gnttab_alloc_pages() -> xen_alloc_unpopulated_pages()

Type Parameter Key Value
PARAM_VALUE 0 nr_pages 1-65536
BUF_SIZE 1 pages (-1),8-524288
BUF_SIZE 1 pages (-1),8-524288
CAPPED_DATA 0 nr_pages 1
DATA_SOURCE 0 nr_pages $0
DATA_SOURCE 1 pages $1
NOSPEC 0 nr_pages
NOSPEC 0 nr_pages
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 nr_pages 2-65536[c]
NO_OVERFLOW_SIMPLE 0 nr_pages
UNITS 0 nr_pages unit_array_size
ELEM_COUNT 1 ==pages0 8051
HALF_LOCKED2 global &xenwatch_mutex

drivers/xen/privcmd.c alloc_empty_pages() -> xen_alloc_unpopulated_pages()

Type Parameter Key Value
PARAM_VALUE 1 pages 1-18446744073709551614
BUF_SIZE 1 pages 0-u64max
DATA_SOURCE 0 nr_pages $1
DATA_SOURCE 1 pages r __kvmalloc_node_noprof
USER_DATA 0 nr_pages 0-s32max[c]
UNITS 0 nr_pages unit_array_size
ELEM_COUNT 1 ==pages0 8051
LOCK2 &mm->mmap_lock
TYPE_LOCK (struct mm_struct)->mmap_lock

drivers/gpu/drm/xen/xen_drm_front_gem.c gem_create() -> xen_alloc_unpopulated_pages()

Type Parameter Key Value
PARAM_VALUE 1 pages 1-18446744073709551614
BUF_SIZE 1 pages 1-s32max
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 nr_pages
UNITS 0 nr_pages unit_array_size

drivers/xen/xlate_mmu.c xen_xlate_map_ballooned_pages() -> xen_alloc_unpopulated_pages()

Type Parameter Key Value
PARAM_VALUE 1 pages 16,4096-ptr_max
BUF_SIZE 1 pages 0-u64max
CAPPED_DATA 0 nr_pages 1
DATA_SOURCE 1 pages r _kzalloc_noprof
NO_OVERFLOW_SIMPLE 0 nr_pages
UNITS 0 nr_pages unit_array_size
ELEM_COUNT 1 ==pages0 8051