Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

net/xfrm/xfrm_policy.c policy_hash_bysel() -> __get_hash_thresh()

Type Parameter Key Value
PARAM_VALUE 0 net 4096-ptr_max
PARAM_VALUE 0 net->xfrm.policy_bydst 4096-ptr_max
PARAM_VALUE 2 dir 0-7
PARAM_VALUE 3 dbits 8396266474286690304
PARAM_VALUE 4 sbits 2351666375978434560
CAPPED_DATA 2 dir 1
DATA_SOURCE 0 net $0
DATA_SOURCE 1 family $2
DATA_SOURCE 2 dir $3
NOSPEC 2 dir
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 1 family 0-u16max
USER_DATA 2 dir 0-2[c]
UNITS 0 net unit_byte
LOCK2 bh
LOCK2 0 &net->xfrm.xfrm_policy_lock
HALF_LOCKED2 global &hash_resize_mutex
TYPE_LOCK (struct netns_xfrm)->xfrm_policy_lock

net/xfrm/xfrm_policy.c policy_hash_direct() -> __get_hash_thresh()

Type Parameter Key Value
PARAM_VALUE 0 net 4096-ptr_max
PARAM_VALUE 0 net->xfrm.policy_bydst 4096-ptr_max
PARAM_VALUE 1 family 2,10
PARAM_VALUE 2 dir 0-2
PARAM_VALUE 3 dbits 5186801996558954496
PARAM_VALUE 4 sbits 6404493397878972416
BUF_SIZE 0 net (-1),1-s32max
BUF_SIZE 0 net (-1),1-s32max
DATA_SOURCE 0 net $0
DATA_SOURCE 1 family $3
DATA_SOURCE 2 dir $4
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 1 family 2,10[c]
USER_DATA 2 dir 0-2
UNITS 0 net unit_byte
LOCK2 rcu_read
HALF_LOCKED2 0 &net->ipv4.mfc_mutex
HALF_LOCKED2 0 &net->ipv6.mfc_mutex

net/xfrm/xfrm_policy.c xfrm_dst_hash_transfer() -> __get_hash_thresh()

Type Parameter Key Value
PARAM_VALUE 0 net 4096-ptr_max
PARAM_VALUE 0 net->xfrm.policy_bydst 4096-ptr_max
PARAM_VALUE 2 dir 0-2
PARAM_VALUE 3 dbits 8011923267002531840
PARAM_VALUE 4 sbits 4411642316733825024
DATA_SOURCE 0 net $0
DATA_SOURCE 2 dir $4
FUZZY_MAX 2 dir 2
HARD_MAX 2 dir 2
PREEMPT_ADD
NOCHECK_CALL
LOCK2 bh
LOCK2 global &hash_resize_mutex
LOCK2 0 &net->xfrm.xfrm_policy_lock
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct netns_xfrm)->xfrm_policy_lock