Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 2 files:
Smatch caller information:
net/bluetooth/mgmt.c add_advertising() -> hci_add_adv_instance()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hdev | 4096-ptr_max |
| PARAM_VALUE | 0 | hdev->dev_flags | 4096-ptr_max |
| PARAM_VALUE | 0 | hdev->le_num_of_adv_sets | 1-255 |
| PARAM_VALUE | 0 | hdev->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | hdev->lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | hdev->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | hdev->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | hdev->lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | hdev->lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | hdev->lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | hdev->mgmt_pending_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | hdev->mgmt_pending_lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | hdev->mgmt_pending_lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | hdev->mgmt_pending_lock.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | hdev->mgmt_pending_lock.first_waiter->task->blocked_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | hdev->mgmt_pending_lock.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | hdev->mgmt_pending_lock.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | hdev->mgmt_pending_lock.first_waiter->task->blocked_lock.raw_lock.val.counter | s32min-s32max |
| PARAM_VALUE | 0 | hdev->mgmt_pending_lock.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | hdev->mgmt_pending_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | instance | 1-255 |
| PARAM_VALUE | 6 | scan_rsp_data | 4096-ptr_max |
| PARAM_VALUE | 9 | tx_power | 127 |
| PARAM_VALUE | 12 | mesh_handle | 0 |
| BUF_SIZE | 0 | hdev | (-1)-s32max |
| BUF_SIZE | 0 | hdev | (-1)-s32max |
| CAPPED_DATA | 0 | &hdev->lock | 1 |
| CAPPED_DATA | 1 | instance | 1 |
| CAPPED_DATA | 3 | adv_data_len | 1 |
| CAPPED_DATA | 5 | scan_rsp_len | 1 |
| DATA_SOURCE | 0 | hdev | $1 |
| FUZZY_MAX | 1 | instance | 1 |
| PARAM_COMPARE | 1 | instance | <= $0->le_num_of_adv_sets |
| NOSPEC | 1 | instance | |
| NOSPEC | 1 | instance | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | instance | 1-255[c] |
| USER_DATA | 2 | flags | 0-u32max[u] |
| USER_DATA | 3 | adv_data_len | 0-255[c] |
| USER_DATA | 4 | *adv_data | 0-255 |
| USER_DATA | 5 | scan_rsp_len | 0-255[c] |
| USER_DATA | 6 | *scan_rsp_data | 0-255 |
| USER_DATA | 7 | timeout | 0-u16max[u] |
| USER_DATA | 8 | duration | 0-u16max[u] |
| UNITS | 1 | instance | unit_byte |
| UNITS | 3 | adv_data_len | unit_byte |
| UNITS | 5 | scan_rsp_len | unit_byte |
| UNITS | 6 | scan_rsp_data | unit_byte |
| USER_PTR | 4 | adv_data | |
| USER_PTR | 6 | scan_rsp_data | |
| LOCK2 | global &mgmt_chan_list_lock | ||
| LOCK2 | sk | ||
| LOCK2 | 0 | &hdev->lock | |
| HALF_LOCKED2 | &vq->mutex | ||
| HALF_LOCKED2 | sk | ||
| TYPE_LOCK | (struct hci_dev)->lock |
net/bluetooth/mgmt.c add_ext_adv_params() -> hci_add_adv_instance()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hdev | 4096-ptr_max |
| PARAM_VALUE | 0 | hdev->dev_flags | 4096-ptr_max |
| PARAM_VALUE | 0 | hdev->le_num_of_adv_sets | 1-255 |
| PARAM_VALUE | 0 | hdev->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | hdev->lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | hdev->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | hdev->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | hdev->lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | hdev->lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | hdev->lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | hdev->mgmt_pending_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | hdev->mgmt_pending_lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | hdev->mgmt_pending_lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | hdev->mgmt_pending_lock.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | hdev->mgmt_pending_lock.first_waiter->task->blocked_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | hdev->mgmt_pending_lock.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | hdev->mgmt_pending_lock.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | hdev->mgmt_pending_lock.first_waiter->task->blocked_lock.raw_lock.val.counter | s32min-s32max |
| PARAM_VALUE | 0 | hdev->mgmt_pending_lock.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | hdev->mgmt_pending_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | instance | 1-255 |
| PARAM_VALUE | 3 | adv_data_len | 0 |
| PARAM_VALUE | 4 | adv_data | 0 |
| PARAM_VALUE | 5 | scan_rsp_len | 0 |
| PARAM_VALUE | 6 | scan_rsp_data | 0 |
| PARAM_VALUE | 12 | mesh_handle | 0 |
| BUF_SIZE | 0 | hdev | (-1)-s32max |
| BUF_SIZE | 0 | hdev | (-1)-s32max |
| CAPPED_DATA | 0 | &hdev->lock | 1 |
| CAPPED_DATA | 1 | instance | 1 |
| DATA_SOURCE | 0 | hdev | $1 |
| FUZZY_MAX | 1 | instance | 1 |
| PARAM_COMPARE | 1 | instance | <= $0->le_num_of_adv_sets |
| NOSPEC | 1 | instance | |
| NOSPEC | 1 | instance | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | instance | 1-255[c] |
| USER_DATA | 2 | flags | 0-u32max[u] |
| USER_DATA | 7 | timeout | 0-u16max[u] |
| USER_DATA | 8 | duration | 0-u16max[u] |
| USER_DATA | 9 | tx_power | (-128)-127[u] |
| USER_DATA | 10 | min_interval | 0-u32max[u] |
| USER_DATA | 11 | max_interval | 0-u32max[u] |
| UNITS | 1 | instance | unit_byte |
| LOCK2 | global &mgmt_chan_list_lock | ||
| LOCK2 | sk | ||
| LOCK2 | 0 | &hdev->lock | |
| HALF_LOCKED2 | &vq->mutex | ||
| HALF_LOCKED2 | sk | ||
| TYPE_LOCK | (struct hci_dev)->lock |
net/bluetooth/mgmt.c mesh_send_sync() -> hci_add_adv_instance()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hdev | 4096-ptr_max |
| PARAM_VALUE | 0 | hdev->adv_instance_cnt | 0-254 |
| PARAM_VALUE | 0 | hdev->cmd_sync_work_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | hdev->cmd_sync_work_lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | hdev->cmd_sync_work_lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | hdev->cmd_sync_work_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | hdev->cmd_sync_work_lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | hdev->le_num_of_adv_sets | 1-255 |
| PARAM_VALUE | 0 | hdev->req_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | hdev->req_lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | hdev->req_lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | hdev->req_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | hdev->req_lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | hdev->req_lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | hdev->req_lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 2 | flags | 0 |
| PARAM_VALUE | 5 | scan_rsp_len | 0 |
| PARAM_VALUE | 6 | scan_rsp_data | 0 |
| PARAM_VALUE | 7 | timeout | 1000 |
| PARAM_VALUE | 9 | tx_power | 127 |
| BUF_SIZE | 4 | adv_data | 31 |
| CAPPED_DATA | 0 | hdev->adv_instance_cnt | 1 |
| DATA_SOURCE | 0 | hdev | $0 |
| PARAM_COMPARE | 0 | hdev->adv_instance_cnt | < $0->le_num_of_adv_sets |
| PARAM_COMPARE | 0 | hdev->adv_instance_cnt | < $1 |
| PARAM_COMPARE | 1 | instance | > $0->adv_instance_cnt |
| UNITS | 1 | instance | unit_byte |
| LOCK2 | 0 | &hdev->req_lock | |
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct hci_dev)->req_lock |
net/bluetooth/hci_core.c hci_add_per_instance() -> hci_add_adv_instance()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hdev | 4096-ptr_max |
| PARAM_VALUE | 0 | hdev->cmd_sync_work_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | hdev->cmd_sync_work_lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | hdev->cmd_sync_work_lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | hdev->cmd_sync_work_lock.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | hdev->cmd_sync_work_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | hdev->cmd_sync_work_lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | hdev->req_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | hdev->req_lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | hdev->req_lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | hdev->req_lock.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | hdev->req_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | hdev->req_lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | hdev->req_lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | hdev->req_lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | hdev->req_lock.wait_lock.raw_lock.val.counter | 0-s32max |
| PARAM_VALUE | 1 | instance | 1-255 |
| PARAM_VALUE | 2 | flags | 0,256 |
| PARAM_VALUE | 3 | adv_data_len | 0 |
| PARAM_VALUE | 4 | adv_data | 0 |
| PARAM_VALUE | 5 | scan_rsp_len | 0 |
| PARAM_VALUE | 6 | scan_rsp_data | 0 |
| PARAM_VALUE | 7 | timeout | 0 |
| PARAM_VALUE | 8 | duration | 0 |
| PARAM_VALUE | 9 | tx_power | 127 |
| PARAM_VALUE | 12 | mesh_handle | 0 |
| DATA_SOURCE | 0 | hdev | $0 |
| DATA_SOURCE | 1 | instance | $1 |
| DATA_SOURCE | 2 | flags | $3 |
| DATA_SOURCE | 10 | min_interval | $6 |
| DATA_SOURCE | 11 | max_interval | $7 |
| FUZZY_MAX | 2 | flags | 0 |
| BIT_INFO | 2 | flags | 0x0,0x100 |
| UNITS | 1 | instance | unit_byte |
| LOCK2 | 0 | &hdev->req_lock | |
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct hci_dev)->req_lock |