Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 4 files:

Smatch caller information:

net/bluetooth/mgmt.c pair_device() -> hci_conn_security()

Type Parameter Key Value
PARAM_VALUE 0 conn 4096-ptr_max
PARAM_VALUE 0 conn->conn_reason 0-1,3
PARAM_VALUE 0 conn->connect_cfm_cb 1340159406992302080,8597941832940326912
PARAM_VALUE 0 conn->disconn_cfm_cb 1340159406992302080,8597941832940326912
PARAM_VALUE 0 conn->io_capability 0-4
PARAM_VALUE 0 conn->pending_sec_level 2-255
PARAM_VALUE 0 conn->sec_level 1
PARAM_VALUE 0 conn->security_cfm_cb 1340159406992302080,8597941832940326912
PARAM_VALUE 1 sec_level 2
PARAM_VALUE 2 auth_type 2
PARAM_VALUE 3 initiator 1
BUF_SIZE 0 conn (-1),5192
BUF_SIZE 0 conn (-1),5192
CAPPED_DATA 0 conn->pending_sec_level 1
FUZZY_MAX 0 conn->conn_reason 0
BIT_INFO 0 conn->connect_cfm_cb 0x1210028104200000,0xffffffffffffffff
BIT_INFO 0 conn->disconn_cfm_cb 0x1210028104200000,0xffffffffffffffff
BIT_INFO 0 conn->security_cfm_cb 0x1210028104200000,0xffffffffffffffff
BIT_INFO 0 conn->state 0x1,0x7
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 conn->io_capability 0-4[u]
LOCK2 &hdev->lock
LOCK2 global &mgmt_chan_list_lock
LOCK2 sk
HALF_LOCKED2 &vq->mutex
HALF_LOCKED2 sk
TYPE_LOCK (struct hci_dev)->lock

net/bluetooth/rfcomm/core.c rfcomm_check_security() -> hci_conn_security()

Type Parameter Key Value
PARAM_VALUE 2 auth_type 0,4-5
FUZZY_MAX 2 auth_type 5
BIT_INFO 2 auth_type 0x0,0x5
HARD_MAX 2 auth_type 5
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &rfcomm_mutex

net/bluetooth/l2cap_core.c l2cap_chan_check_security() -> hci_conn_security()

Type Parameter Key Value
PARAM_VALUE 0 conn 4096-ptr_max
PARAM_VALUE 0 conn->type 0-127,129-255
PARAM_VALUE 2 auth_type 0-5
DATA_SOURCE 2 auth_type r l2cap_get_auth_type
DATA_SOURCE 3 initiator $1
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 sec_level 1-4
HALF_LOCKED2 &chan->lock
HALF_LOCKED2 &conn->lock
HALF_LOCKED2 &hdev->lock
HALF_LOCKED2 &pchan->lock
HALF_LOCKED2 sk