Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 2 files:
Smatch caller information:
drivers/vfio/vfio_main.c vfio_info_add_capability() -> vfio_info_cap_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | caps | 6732502037411807232,7938212896601178112,8671588375677222912 |
| PARAM_VALUE | 1 | size | 8,12,16,32 |
| PARAM_VALUE | 2 | id | 1-3,5 |
| PARAM_VALUE | 3 | version | 1 |
| DATA_SOURCE | 0 | caps | $0 |
| DATA_SOURCE | 1 | size | $2 |
| HARD_MAX | 1 | size | 32 |
| HARD_MAX | 2 | id | 5 |
| UNITS | 1 | size | unit_byte |
| HALF_LOCKED2 | &iommu->lock |
drivers/vfio/vfio_iommu_type1.c vfio_iommu_iova_add_cap() -> vfio_info_cap_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | caps | 6732502037411807232 |
| PARAM_VALUE | 0 | caps->buf | 1-u64max |
| PARAM_VALUE | 1 | size | 32-4000000 |
| PARAM_VALUE | 2 | id | 1 |
| PARAM_VALUE | 3 | version | 1 |
| DATA_SOURCE | 0 | caps | $0 |
| DATA_SOURCE | 1 | size | $2 |
| BIT_INFO | 1 | size | 0x0,0xfffffffff |
| LOCK2 | &iommu->lock | ||
| TYPE_LOCK | (struct vfio_iommu)->lock |