Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

net/core/rtnetlink.c rtnl_fdb_add() -> (struct net_device_ops)->ndo_fdb_add()

Type Parameter Key Value
PARAM_VALUE 0 ndm 4096-ptr_max
PARAM_VALUE 0 ndm->ndm_ifindex s32min-(-1),1-s32max
PARAM_VALUE 1 tb 4096-ptr_max
PARAM_VALUE 1 (*tb).nla_len 0
PARAM_VALUE 1 (*tb).nla_type 0
PARAM_VALUE 2 dev 4096-ptr_max
PARAM_VALUE 2 dev->priv_flags 512-u32max
PARAM_VALUE 2 dev->type 1
PARAM_VALUE 4 vid 0-4094
PARAM_VALUE 5 flags 1-u16max
PARAM_VALUE 6 notified 7339915042346348544
PARAM_VALUE 6 *notified 0
PARAM_VALUE 7 extack 4971238048455385088
PARAM_VALUE 7 extack->bad_attr 0
PARAM_VALUE 7 extack->policy 0
BUF_SIZE 1 tb 144
CAPPED_DATA 0 ndm->ndm_ifindex 1
CAPPED_DATA 2 dev->ifindex 1
DATA_SOURCE 0 ndm r nlmsg_data
DATA_SOURCE 2 dev r __dev_get_by_index
DATA_SOURCE 3 addr r nla_data
DATA_SOURCE 7 extack $2
BIT_INFO 5 flags 0x1,0xffff
MEM_ZERO 7 extack
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 ndm->ndm_family 0-255
USER_DATA 0 ndm->ndm_flags 0-255
USER_DATA 0 ndm->ndm_ifindex s32min-(-1),1-s32max[c]
USER_DATA 0 ndm->ndm_pad1 0-255
USER_DATA 0 ndm->ndm_pad2 0-u16max
USER_DATA 0 ndm->ndm_state 0-u16max
USER_DATA 0 ndm->ndm_type 0-255
USER_DATA 3 *addr 0-255
USER_DATA 5 flags 1-u16max[u]
USER_PTR 0 ndm
USER_PTR 3 addr
HALF_LOCKED2 &net->xfrm.xfrm_cfg_mutex
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 &rtnl_mutex
HALF_LOCKED2 global &rx_queue_mutex

net/core/rtnetlink.c rtnl_fdb_add() -> (struct net_device_ops)->ndo_fdb_add()

Type Parameter Key Value
PARAM_VALUE 0 ndm 4096-ptr_max
PARAM_VALUE 0 ndm->ndm_ifindex s32min-(-1),1-s32max
PARAM_VALUE 1 tb 4096-ptr_max
PARAM_VALUE 1 (*tb).nla_len 0
PARAM_VALUE 1 (*tb).nla_type 0
PARAM_VALUE 2 dev 4096-ptr_max
PARAM_VALUE 2 dev->netdev_ops 4096-ptr_max
PARAM_VALUE 2 dev->netdev_ops->ndo_fdb_add 4096-ptr_max
PARAM_VALUE 2 dev->type 1
PARAM_VALUE 4 vid 0-4094
PARAM_VALUE 5 flags 1-u16max
PARAM_VALUE 6 notified 7339915042346348544
PARAM_VALUE 6 *notified 0
PARAM_VALUE 7 extack 4971238048455385088
PARAM_VALUE 7 extack->bad_attr 0
PARAM_VALUE 7 extack->policy 0
BUF_SIZE 1 tb 144
CAPPED_DATA 0 ndm->ndm_ifindex 1
CAPPED_DATA 2 dev->ifindex 1
DATA_SOURCE 0 ndm r nlmsg_data
DATA_SOURCE 2 dev r __dev_get_by_index
DATA_SOURCE 3 addr r nla_data
DATA_SOURCE 7 extack $2
CONTAINER 2 -488-8+0 $(-1)
BIT_INFO 0 ndm->ndm_flags 0x2,0xff
BIT_INFO 5 flags 0x1,0xffff
MEM_ZERO 7 extack
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 ndm->ndm_family 0-255
USER_DATA 0 ndm->ndm_flags 0-255
USER_DATA 0 ndm->ndm_ifindex s32min-(-1),1-s32max[c]
USER_DATA 0 ndm->ndm_pad1 0-255
USER_DATA 0 ndm->ndm_pad2 0-u16max
USER_DATA 0 ndm->ndm_state 0-u16max
USER_DATA 0 ndm->ndm_type 0-255
USER_DATA 3 *addr 0-255
USER_DATA 5 flags 1-u16max[u]
USER_PTR 0 ndm
USER_PTR 3 addr
HALF_LOCKED2 &net->xfrm.xfrm_cfg_mutex
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 &rtnl_mutex
HALF_LOCKED2 global &rx_queue_mutex