Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 13 files:
- drivers/block/xen-blkfront.c, line 391
- drivers/net/xen-netfront.c, line 491
- drivers/scsi/xen-scsifront.c
- drivers/tty/hvc/hvc_xen.c, line 475
- drivers/usb/host/xen-hcd.c, line 604
- drivers/xen/gntdev-dmabuf.c, line 501
- drivers/xen/grant-dma-ops.c
- drivers/xen/grant-table.c
- drivers/xen/pvcalls-front.c, line 1287
- drivers/xen/xen-front-pgdir-shbuf.c
- drivers/xen/xenbus/xenbus_client.c, line 426
- drivers/xen/xenbus/xenbus_dev_backend.c, line 50
- include/xen/grant_table.h, line 169
Smatch caller information:
drivers/tty/hvc/hvc_xen.c xencons_connect_backend() -> gnttab_grant_foreign_access_ref()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ref | 0-s32max |
| PARAM_VALUE | 2 | frame | 0-4611686018427387902,u64max |
| PARAM_VALUE | 3 | readonly | 0 |
| DATA_SOURCE | 0 | ref | r gnttab_claim_grant_reference |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &dev->reclaim_sem |
drivers/xen/xenbus/xenbus_dev_backend.c xenbus_alloc() -> gnttab_grant_foreign_access_ref()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ref | 1 |
| PARAM_VALUE | 2 | frame | 0-4611686018427387902,u64max |
| PARAM_VALUE | 3 | readonly | 0 |
| DATA_SOURCE | 1 | domid | $0 |
| CAPABLE | 0 | 21 | |
| NOCHECK_CALL | |||
| USER_DATA | 1 | domid | 0-u16max |
| LOCK2 | global &xs_response_mutex | ||
| LOCK2 | global &xs_watch_rwsem |
drivers/net/xen-netfront.c gnttab_page_grant_foreign_access_ref_one() -> gnttab_grant_foreign_access_ref()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ref | 0-4294967294 |
| PARAM_VALUE | 3 | readonly | 0 |
| DATA_SOURCE | 0 | ref | $0 |
| DATA_SOURCE | 1 | domid | $1 |
| DATA_SOURCE | 3 | readonly | $3 |
| BIT_INFO | 0 | ref | 0x0,0x7fffffff |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &queue->rx_lock | ||
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | global &xenwatch_mutex | ||
| TYPE_LOCK | (struct netfront_queue)->rx_lock |
drivers/net/xen-netfront.c xennet_tx_setup_grant() -> gnttab_grant_foreign_access_ref()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ref | 0-4294967294 |
| PARAM_VALUE | 3 | readonly | 4 |
| DATA_SOURCE | 0 | ref | r gnttab_claim_grant_reference |
| DATA_SOURCE | 2 | frame | $0 |
| BIT_INFO | 0 | ref | 0x0,0x7fffffff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &queue->tx_lock | ||
| HALF_LOCKED2 | &rinfo->ring_lock | ||
| HALF_LOCKED2 | flags |
drivers/xen/grant-dma-ops.c xen_grant_dma_alloc() -> gnttab_grant_foreign_access_ref()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | frame | 0-4611686018427387902,u64max |
| PARAM_VALUE | 3 | readonly | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/xen/grant-dma-ops.c xen_grant_dma_map_phys() -> gnttab_grant_foreign_access_ref()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 3 | readonly | 0-1 |
| FUZZY_MAX | 3 | readonly | 1 |
| HARD_MAX | 3 | readonly | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/xen/pvcalls-front.c pvcalls_front_probe() -> gnttab_grant_foreign_access_ref()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ref | 0-s32max |
| PARAM_VALUE | 2 | frame | 0-4611686018427387902,u64max |
| PARAM_VALUE | 3 | readonly | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &dev->reclaim_sem | ||
| TYPE_LOCK | (struct xenbus_device)->reclaim_sem |
drivers/scsi/xen-scsifront.c map_data_for_request() -> gnttab_grant_foreign_access_ref()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ref | 0-4294967267,4294967269-4294967294 |
| PARAM_VALUE | 3 | readonly | 1 |
| DATA_SOURCE | 0 | ref | r gnttab_claim_grant_reference |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | flags | ||
| LOCK2 | shost->host_lock | ||
| HALF_LOCKED2 | &sdev->state_mutex |
drivers/scsi/xen-scsifront.c map_data_for_request() -> gnttab_grant_foreign_access_ref()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ref | 0-4294967267,4294967269-4294967294 |
| PARAM_VALUE | 3 | readonly | 0-1 |
| DATA_SOURCE | 0 | ref | r gnttab_claim_grant_reference |
| FUZZY_MAX | 3 | readonly | 1 |
| HARD_MAX | 3 | readonly | 1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | flags | ||
| LOCK2 | shost->host_lock | ||
| HALF_LOCKED2 | &sdev->state_mutex |
drivers/xen/xenbus/xenbus_client.c xenbus_setup_ring() -> gnttab_grant_foreign_access_ref()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ref | 0-4294967294 |
| PARAM_VALUE | 3 | readonly | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &dev->reclaim_sem | ||
| HALF_LOCKED2 | global &xenwatch_mutex |
drivers/xen/xen-front-pgdir-shbuf.c grant_references() -> gnttab_grant_foreign_access_ref()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ref | 0-s32max |
| PARAM_VALUE | 3 | readonly | 0 |
| DATA_SOURCE | 0 | ref | r gnttab_claim_grant_reference |
| DATA_SOURCE | 2 | frame | r xen_page_to_gfn |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &runtime->buffer_mutex |
drivers/xen/xen-front-pgdir-shbuf.c guest_grant_refs_for_buffer() -> gnttab_grant_foreign_access_ref()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ref | 0-s32max |
| PARAM_VALUE | 3 | readonly | 0 |
| DATA_SOURCE | 0 | ref | r gnttab_claim_grant_reference |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &runtime->buffer_mutex |
drivers/xen/grant-table.c gnttab_grant_foreign_access() -> gnttab_grant_foreign_access_ref()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ref | 0-s32max |
| PARAM_VALUE | 3 | readonly | 0-1 |
| DATA_SOURCE | 0 | ref | r get_free_entries |
| DATA_SOURCE | 1 | domid | $0 |
| DATA_SOURCE | 2 | frame | $1 |
| DATA_SOURCE | 3 | readonly | $2 |
| FUZZY_MAX | 3 | readonly | 1 |
| HARD_MAX | 3 | readonly | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 1 | domid | 0-u16max |
| USER_DATA | 3 | readonly | 0-1 |
| HALF_LOCKED2 | global &xenwatch_mutex |
drivers/usb/host/xen-hcd.c xenhcd_gnttab_map() -> gnttab_grant_foreign_access_ref()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ref | 0-4294967294 |
| PARAM_VALUE | 2 | frame | 0-4611686018427387902,u64max |
| PARAM_VALUE | 3 | readonly | 0,4 |
| DATA_SOURCE | 0 | ref | r gnttab_claim_grant_reference |
| DATA_SOURCE | 3 | readonly | $6 |
| FUZZY_MAX | 3 | readonly | 4 |
| BIT_INFO | 0 | ref | 0x0,0x7fffffff |
| BIT_INFO | 3 | readonly | 0x0,0x4 |
| HARD_MAX | 3 | readonly | 4 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &info->lock | ||
| LOCK2 | flags | ||
| TYPE_LOCK | (struct xenhcd_info)->lock |
drivers/xen/gntdev-dmabuf.c dmabuf_imp_grant_foreign_access() -> gnttab_grant_foreign_access_ref()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ref | 0-s32max |
| PARAM_VALUE | 3 | readonly | 0 |
| DATA_SOURCE | 0 | ref | r gnttab_claim_grant_reference |
| DATA_SOURCE | 1 | domid | $3 |
| NOCHECK_CALL | |||
| USER_DATA | 1 | domid | 0-u16max |