Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 4 files:
- drivers/infiniband/core/umem.c, line 253
- drivers/vfio/pci/virtio/migrate.c, line 86
- lib/scatterlist.c
- tools/testing/scatterlist/main.c
Smatch caller information:
drivers/infiniband/core/umem.c __ib_umem_get_va() -> sg_alloc_append_table_from_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sgt_append | 4096-ptr_max |
| PARAM_VALUE | 1 | pages | 4096-ptr_max |
| PARAM_VALUE | 2 | n_pages | 0-s32max |
| PARAM_VALUE | 3 | offset | 0 |
| PARAM_VALUE | 4 | size | 0,4096-s32max,18446744071562067968-18446744073709547520 |
| PARAM_VALUE | 5 | max_segment | 1-u32max |
| PARAM_VALUE | 7 | gfp_mask | 3264 |
| BUF_SIZE | 1 | pages | 4096 |
| BUF_SIZE | 1 | pages | 4096 |
| DATA_SOURCE | 1 | pages | r _kmalloc_noprof |
| BIT_INFO | 4 | size | 0x0,0xfffff000 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | n_pages | 0-s32max[c] |
| USER_DATA | 4 | size | 0,4096-s32max,18446744071562067968-18446744073709547520[c] |
| USER_DATA | 6 | left_pages | 0-u32max |
| UNITS | 2 | n_pages | unit_page |
| UNITS | 4 | size | unit_byte |
| UNITS | 6 | left_pages | unit_page |
| HALF_LOCKED2 | &context->db_page_mutex |
lib/scatterlist.c sg_alloc_table_from_pages_segment() -> sg_alloc_append_table_from_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sgt_append | 3981068224430514176 |
| PARAM_VALUE | 0 | sgt_append->prv | 0 |
| PARAM_VALUE | 0 | sgt_append->sgt.nents | 0 |
| PARAM_VALUE | 0 | sgt_append->sgt.orig_nents | 0 |
| PARAM_VALUE | 0 | sgt_append->sgt.sgl | 0 |
| PARAM_VALUE | 0 | sgt_append->total_nents | 0 |
| PARAM_VALUE | 6 | left_pages | 0 |
| PARAM_VALUE | 7 | gfp_mask | 0,3072,3264,8192-u32max |
| BUF_SIZE | 1 | pages | (-1)-s32max |
| BUF_SIZE | 1 | pages | (-1)-s32max |
| CAPPED_DATA | 5 | max_segment | 1 |
| DATA_SOURCE | 1 | pages | $1 |
| DATA_SOURCE | 2 | n_pages | $2 |
| DATA_SOURCE | 3 | offset | $3 |
| DATA_SOURCE | 4 | size | $4 |
| DATA_SOURCE | 5 | max_segment | $5 |
| DATA_SOURCE | 7 | gfp_mask | $6 |
| BIT_INFO | 7 | gfp_mask | 0x0,0xfffbffff |
| NOSPEC | 2 | n_pages | |
| NOSPEC | 4 | size | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 2 | n_pages | 0-4194305[c] |
| HOST_DATA | 4 | size | 0-u64max[c] |
| USER_DATA | 2 | n_pages | 0-u32max[c] |
| USER_DATA | 3 | offset | 0-4095[c] |
| USER_DATA | 4 | size | 0-u64max |
| UNITS | 1 | pages | unit_page |
| UNITS | 3 | offset | unit_byte |
| UNITS | 4 | size | unit_byte |
| UNITS | 5 | max_segment | unit_byte |
| ELEM_COUNT | 1 | ==pages2 | 8051 |
| HALF_LOCKED2 | &ctx->uring_lock | ||
| HALF_LOCKED2 | &pcl->lock | ||
| HALF_LOCKED2 | &pds_vfio->state_mutex | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | global &qdev_mutex | ||
| HALF_LOCKED2 | global &z_erofs_crypto_rwsem | ||
| HALF_LOCKED2 | obj->resv |
drivers/vfio/pci/virtio/migrate.c virtiovf_add_migration_pages() -> sg_alloc_append_table_from_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sgt_append | 4096-ptr_max |
| PARAM_VALUE | 1 | pages | 16,4096-ptr_max |
| PARAM_VALUE | 2 | n_pages | 1-s32max |
| PARAM_VALUE | 3 | offset | 0 |
| PARAM_VALUE | 4 | size | 4096-8796093018112 |
| PARAM_VALUE | 5 | max_segment | u32max |
| PARAM_VALUE | 6 | left_pages | 128 |
| PARAM_VALUE | 7 | gfp_mask | 4197568 |
| BUF_SIZE | 1 | pages | 0-4096 |
| BUF_SIZE | 1 | pages | 0-4096 |
| CAPPED_DATA | 2 | n_pages | 1 |
| CAPPED_DATA | 4 | size | 1 |
| DATA_SOURCE | 1 | pages | r __kvmalloc_node_noprof |
| DATA_SOURCE | 2 | n_pages | r alloc_pages_bulk_noprof |
| BIT_INFO | 4 | size | 0x0,0x7fffffff000 |
| NO_OVERFLOW_SIMPLE | 0 | sgt_append->total_nents | |
| UNITS | 2 | n_pages | unit_page |
| UNITS | 4 | size | unit_byte |
| HALF_LOCKED2 | &migf->lock | ||
| HALF_LOCKED2 | &migf->virtvdev->state_mutex | ||
| TYPE_LOCK | (struct virtiovf_pci_core_device)->state_mutex |