Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 8 files:

Smatch caller information:

mm/gup_test.c __gup_test_ioctl() -> pin_user_pages()

Type Parameter Key Value
PARAM_VALUE 0 start 0-18446744073709551614
PARAM_VALUE 1 nr_pages 0-4503599627370495
PARAM_VALUE 3 pages 4096-ptr_max
CAPPED_DATA 0 start 1
CAPPED_DATA 0 start 1
CAPPED_DATA 1 nr_pages 1
USER_DATA 0 start 0-s32max[c]
USER_DATA 1 nr_pages 0-4503599627370495[c]
USER_DATA 2 gup_flags 0-u32max
UNITS 0 start unit_byte
UNITS 1 nr_pages unit_page

mm/gup_test.c __gup_test_ioctl() -> pin_user_pages()

Type Parameter Key Value
PARAM_VALUE 0 start 0-18446744073709551614
PARAM_VALUE 1 nr_pages 0-4503599627370495
PARAM_VALUE 2 gup_flags 0,256-u32max
PARAM_VALUE 3 pages 4096-ptr_max
CAPPED_DATA 0 start 1
CAPPED_DATA 0 start 1
CAPPED_DATA 1 nr_pages 1
BIT_INFO 2 gup_flags 0x100,0xffffffff
USER_DATA 0 start 0-s32max[c]
USER_DATA 1 nr_pages 0-4503599627370495[c]
USER_DATA 2 gup_flags 0,256-u32max
UNITS 0 start unit_byte
UNITS 1 nr_pages unit_page

mm/gup_test.c __gup_test_ioctl() -> pin_user_pages()

Type Parameter Key Value
PARAM_VALUE 0 start 0-18446744073709551614
PARAM_VALUE 1 nr_pages 0-4503599627370495
PARAM_VALUE 3 pages 4096-ptr_max
CAPPED_DATA 0 start 1
CAPPED_DATA 0 start 1
CAPPED_DATA 1 nr_pages 1
USER_DATA 0 start 0-s32max[c]
USER_DATA 1 nr_pages 0-4503599627370495[c]
USER_DATA 2 gup_flags 0-u32max
UNITS 0 start unit_byte
UNITS 1 nr_pages unit_page

mm/gup_test.c pin_longterm_test_start() -> pin_user_pages()

Type Parameter Key Value
PARAM_VALUE 2 gup_flags 256-257
PARAM_VALUE 3 pages 1-u64max
BUF_SIZE 3 pages 8,u64max
BUF_SIZE 3 pages 8,u64max
BIT_INFO 2 gup_flags 0x100,0x101
USER_DATA 1 nr_pages 2-2251799813685247[c]
USER_DATA 3 pages 4096-ptr_max[c][u]
UNITS 0 start unit_byte
UNITS 1 nr_pages unit_page
LOCK2 &data->longterm_mutex
TYPE_LOCK (struct gup_test_data)->longterm_mutex

drivers/vhost/vdpa.c vhost_vdpa_pa_map() -> pin_user_pages()

Type Parameter Key Value
PARAM_VALUE 0 start 0,4096-u64max
PARAM_VALUE 1 nr_pages 1-512
PARAM_VALUE 2 gup_flags 256-257
PARAM_VALUE 3 pages 18379471554275704832,18446612682070032384
CAPPED_DATA 1 nr_pages 1
CAPPED_DATA 1 nr_pages 1
DATA_SOURCE 3 pages r get_free_pages_noprof
FUZZY_MAX 2 gup_flags 256
BIT_INFO 2 gup_flags 0x100,0x101
RX_PATH
TASK_NOT_RUNNING
LOCK2 &dev->mm->mmap_lock
LOCK2 &dev->mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct mm_struct)->mmap_lock
TYPE_LOCK (struct vhost_dev)->mutex

drivers/vdpa/vdpa_user/vduse_dev.c vduse_dev_reg_umem() -> pin_user_pages()

Type Parameter Key Value
PARAM_VALUE 1 nr_pages 0-4503599627370495
PARAM_VALUE 2 gup_flags 257
PARAM_VALUE 3 pages 1-u64max
BUF_SIZE 3 pages 0-36028797018963960
BUF_SIZE 3 pages 0-36028797018963960
DATA_SOURCE 0 start $3
DATA_SOURCE 3 pages r __vmalloc_noprof
BIT_INFO 0 start 0x0,0xfffffffffffff000
BIT_INFO 0 start 0x0,0xfffffffffffff000
USER_DATA 0 start 0-u64max
NO_OVERFLOW_SIMPLE 1 nr_pages
UNITS 1 nr_pages unit_array_size
ELEM_COUNT 3 ==pages1 8051
LOCK2 &dev->domain_lock
TYPE_LOCK (struct vduse_dev)->domain_lock

drivers/infiniband/hw/usnic/usnic_uiom.c usnic_uiom_get_pages() -> pin_user_pages()

Type Parameter Key Value
PARAM_VALUE 1 nr_pages 1-512
PARAM_VALUE 2 gup_flags 256-257
PARAM_VALUE 3 pages 4096-ptr_max
BUF_SIZE 3 pages 4096
BUF_SIZE 3 pages 4096
CAPPED_DATA 1 nr_pages 1
DATA_SOURCE 3 pages r _kmalloc_noprof
FUZZY_MAX 2 gup_flags 256
BIT_INFO 2 gup_flags 0x100,0x101
NOSPEC 0 start
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 start 0,4096-6442446848[c]
USER_DATA 1 nr_pages 1-511[c]
UNITS 1 nr_pages unit_page
LOCK2 &mm->mmap_lock
TYPE_LOCK (struct mm_struct)->mmap_lock

net/xdp/xdp_umem.c xdp_umem_pin_pages() -> pin_user_pages()

Type Parameter Key Value
PARAM_VALUE 2 gup_flags 257
PARAM_VALUE 3 pages 4096-ptr_max
BUF_SIZE 3 pages 0-34359738360
CAPPED_DATA 0 start 1
CAPPED_DATA 0 start 1
DATA_SOURCE 0 start $1
BIT_INFO 0 start 0x0,0xfffffffffffff000
BIT_INFO 0 start 0x0,0xfffffffffffff000
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 start 0-s32max[c]
NO_OVERFLOW_SIMPLE 0 start
NO_OVERFLOW_SIMPLE 1 nr_pages
UNITS 1 nr_pages unit_array_size
LOCK2 &xs->mutex
TYPE_LOCK (struct xdp_sock)->mutex