Defined in 1 files as a function:

Referenced in 5 files:

Smatch caller information:

net/core/net_test.c ip_tunnel_flags_test_run() -> ip_tunnel_flags_from_be16()

Type Parameter Key Value
PARAM_VALUE 0 dst 6583852560820981760
NOCHECK_CALL

net/ipv4/ip_tunnel_core.c ip6_tun_build_state() -> ip_tunnel_flags_from_be16()

Type Parameter Key Value
PARAM_VALUE 0 dst 8602340089622024192
DATA_SOURCE 1 flags r nla_get_be16
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &net->rtnl_mutex
HALF_LOCKED2 global &rtnl_mutex

net/ipv4/ip_tunnel_core.c ip_tun_build_state() -> ip_tunnel_flags_from_be16()

Type Parameter Key Value
PARAM_VALUE 0 dst 1914836923465658368
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &net->rtnl_mutex
HALF_LOCKED2 global &rtnl_mutex

net/ipv4/ip_tunnel_core.c ip_tunnel_netlink_parms() -> ip_tunnel_flags_from_be16()

Type Parameter Key Value
PARAM_VALUE 0 dst 0
DATA_SOURCE 1 flags r nla_get_be16
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 global &rtnl_mutex
HALF_LOCKED2 &net->xfrm.xfrm_cfg_mutex
HALF_LOCKED2 &ops->srcu
HALF_LOCKED2 global &audit_cmd_mutex.lock
HALF_LOCKED2 global &cb_lock
HALF_LOCKED2 global &crypto_cfg_mutex
HALF_LOCKED2 global &hwsim_phys_lock
HALF_LOCKED2 global &rx_queue_mutex

net/ipv4/ip_tunnel.c ip_tunnel_parm_from_user() -> ip_tunnel_flags_from_be16()

Type Parameter Key Value
NOCHECK_CALL
USER_DATA 1 flags 0-u16max
HALF_LOCKED2 &net->rtnl_mutex
HALF_LOCKED2 global &rtnl_mutex

net/ipv4/ip_tunnel.c ip_tunnel_parm_from_user() -> ip_tunnel_flags_from_be16()

Type Parameter Key Value
NOCHECK_CALL
USER_DATA 1 flags 0-u16max
HALF_LOCKED2 &net->rtnl_mutex
HALF_LOCKED2 global &rtnl_mutex

net/ipv4/ip_gre.c ipgre_tunnel_ctl() -> ip_tunnel_flags_from_be16()

Type Parameter Key Value
PARAM_VALUE 0 dst 4096-ptr_max
PARAM_VALUE 1 flags 0,7,1792-65287
DATA_SOURCE 1 flags r gre_tnl_flags_to_gre_flags
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 global &rtnl_mutex

net/ipv4/ip_gre.c ipgre_tunnel_ctl() -> ip_tunnel_flags_from_be16()

Type Parameter Key Value
PARAM_VALUE 0 dst 4096-ptr_max
PARAM_VALUE 1 flags 0,7,1792-65287
DATA_SOURCE 1 flags r gre_tnl_flags_to_gre_flags
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 global &rtnl_mutex

net/ipv4/ip_vti.c vti_tunnel_ctl() -> ip_tunnel_flags_from_be16()

Type Parameter Key Value
PARAM_VALUE 0 dst 7413328381940719616
PARAM_VALUE 1 flags 8192
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 global &rtnl_mutex