Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
net/xfrm/xfrm_policy.c policy_hash_direct() -> __addr_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | daddr | 1-u64max |
| PARAM_VALUE | 1 | saddr | 1-u64max |
| PARAM_VALUE | 2 | family | 2,10 |
| BUF_SIZE | 0 | daddr | 4,16 |
| BUF_SIZE | 0 | daddr | 4,16 |
| BUF_SIZE | 1 | saddr | 4,16 |
| BUF_SIZE | 1 | saddr | 4,16 |
| DATA_SOURCE | 0 | daddr | $1 |
| DATA_SOURCE | 1 | saddr | $2 |
| DATA_SOURCE | 2 | family | $3 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | family | 2,10[c] |
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | &net->ipv4.mfc_mutex | ||
| HALF_LOCKED2 | &net->ipv6.mfc_mutex |
net/xfrm/xfrm_policy.c xfrm_dst_hash_transfer() -> __addr_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | daddr | 240,4096-ptr_max |
| PARAM_VALUE | 1 | saddr | 256,4096-ptr_max |
| PARAM_VALUE | 3 | hmask | 1-4294967293,u32max |
| DATA_SOURCE | 3 | hmask | $3 |
| PREEMPT_ADD | |||
| LOCK2 | &net->xfrm.xfrm_policy_lock | ||
| LOCK2 | bh | ||
| LOCK2 | global &hash_resize_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct netns_xfrm)->xfrm_policy_lock |