Defined in 1 files as a function:
Referenced in 3 files:
Smatch caller information:
net/ipv4/inet_connection_sock.c inet_bhashfn_portaddr() -> ipv4_portaddr_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| CAPPED_DATA | 0 | net | 1 |
| DATA_SOURCE | 0 | net | $2 |
| DATA_SOURCE | 2 | port | $3 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | port | 1-u16max[c] |
| UNITS | 0 | net | unit_byte |
| UNITS | 1 | saddr | unit_byte |
| LOCK2 | &head->lock | ||
| LOCK2 | bh | ||
| HALF_LOCKED2 | global &port_mutex | ||
| HALF_LOCKED2 | sk | ||
| TYPE_LOCK | (struct inet_bind_hashbucket)->lock |
net/ipv4/udp.c __udp4_lib_demux_lookup() -> ipv4_portaddr_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| DATA_SOURCE | 0 | net | $0 |
| DATA_SOURCE | 1 | saddr | $2 |
| DATA_SOURCE | 2 | port | $1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | port | 0-u16max |
| UNITS | 0 | net | unit_byte |
| UNITS | 1 | saddr | unit_byte |
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | rcu_read |
net/ipv4/udp.c __udp4_lib_lookup() -> ipv4_portaddr_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| DATA_SOURCE | 0 | net | $0 |
| DATA_SOURCE | 1 | saddr | $3 |
| DATA_SOURCE | 2 | port | $4 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | saddr | 0-u32max[u] |
| USER_DATA | 2 | port | 0-u16max |
| UNITS | 0 | net | unit_byte |
| UNITS | 1 | saddr | unit_byte |
| HALF_LOCKED2 | rcu_read |
net/ipv4/udp.c __udp4_lib_lookup() -> ipv4_portaddr_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| PARAM_VALUE | 1 | saddr | 0 |
| DATA_SOURCE | 0 | net | $0 |
| DATA_SOURCE | 2 | port | $4 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | port | 0-u16max |
| UNITS | 0 | net | unit_byte |
| HALF_LOCKED2 | rcu_read |
net/ipv4/udp.c __udp4_lib_mcast_deliver() -> ipv4_portaddr_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| PARAM_VALUE | 1 | saddr | 0 |
| DATA_SOURCE | 0 | net | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | port | 0-u16max |
| UNITS | 0 | net | unit_byte |
| HALF_LOCKED2 | rcu_read |
net/ipv4/udp.c __udp4_lib_mcast_deliver() -> ipv4_portaddr_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| DATA_SOURCE | 0 | net | $0 |
| DATA_SOURCE | 1 | saddr | $4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | port | 0-u16max |
| UNITS | 0 | net | unit_byte |
| UNITS | 1 | saddr | unit_byte |
| HALF_LOCKED2 | rcu_read |
net/ipv4/udp.c udp_v4_get_port() -> ipv4_portaddr_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | saddr | 0 |
| DATA_SOURCE | 2 | port | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | port | 0-u16max |
| HALF_LOCKED2 | global &port_mutex | ||
| HALF_LOCKED2 | sk |
net/ipv4/udp.c udp_v4_get_port() -> ipv4_portaddr_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | port | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | saddr | unit_byte |
| HALF_LOCKED2 | global &port_mutex | ||
| HALF_LOCKED2 | sk |
net/ipv4/udp.c udp_v4_rehash() -> ipv4_portaddr_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | port | 0-u16max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | saddr | unit_byte |
| HALF_LOCKED2 | sk |
net/ipv4/inet_hashtables.c __inet_lookup_listener() -> ipv4_portaddr_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| DATA_SOURCE | 0 | net | $0 |
| DATA_SOURCE | 1 | saddr | $5 |
| DATA_SOURCE | 2 | port | $6 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | port | 0-u16max |
| UNITS | 0 | net | unit_byte |
| UNITS | 1 | saddr | unit_byte |
| HALF_LOCKED2 | rcu_read |
net/ipv4/inet_hashtables.c __inet_lookup_listener() -> ipv4_portaddr_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| PARAM_VALUE | 1 | saddr | 0 |
| DATA_SOURCE | 0 | net | $0 |
| DATA_SOURCE | 2 | port | $6 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | port | 0-u16max |
| UNITS | 0 | net | unit_byte |
| HALF_LOCKED2 | rcu_read |
net/ipv4/inet_hashtables.c inet_bhash2_addr_any_hashbucket() -> ipv4_portaddr_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| PARAM_VALUE | 1 | saddr | 0 |
| DATA_SOURCE | 0 | net | $1 |
| DATA_SOURCE | 2 | port | $2 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | port | 1-u16max[c] |
| UNITS | 0 | net | unit_byte |
| LOCK2 | &head->lock | ||
| LOCK2 | bh | ||
| HALF_LOCKED2 | global &port_mutex | ||
| HALF_LOCKED2 | sk | ||
| TYPE_LOCK | (struct inet_bind_hashbucket)->lock |
net/ipv4/inet_hashtables.c inet_bhashfn_portaddr() -> ipv4_portaddr_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| BUF_SIZE | 0 | net | (-1),1-s32max |
| BUF_SIZE | 0 | net | (-1),1-s32max |
| CAPPED_DATA | 0 | net | 1 |
| DATA_SOURCE | 0 | net | $2 |
| DATA_SOURCE | 2 | port | $3 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | net | unit_byte |
| UNITS | 1 | saddr | unit_byte |
| HALF_LOCKED2 | &head->lock | ||
| HALF_LOCKED2 | bh |
net/ipv4/inet_hashtables.c inet_lhash2_bucket_sk() -> ipv4_portaddr_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | port | 0-u16max |
| BUF_SIZE | 0 | net | (-1),1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | saddr | unit_byte |
| HALF_LOCKED2 | &sk->sk_lock.slock | ||
| HALF_LOCKED2 | sk |
net/ipv4/inet_timewait_sock.c inet_bhashfn_portaddr() -> ipv4_portaddr_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | net | $2 |
| DATA_SOURCE | 2 | port | $3 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | saddr | unit_byte |