Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 2 files:
Smatch caller information:
net/ipv4/nexthop.c nh_create_ipv4() -> fib_nh_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net->rtnl_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | net->rtnl_mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | net->rtnl_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | net->rtnl_mutex.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | net->rtnl_mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | nh | 4096-ptr_max |
| PARAM_VALUE | 2 | cfg | 6517650083901964288 |
| PARAM_VALUE | 2 | cfg->fc_dscp | 0 |
| PARAM_VALUE | 2 | cfg->fc_dst | 0 |
| PARAM_VALUE | 2 | cfg->fc_dst_len | 0 |
| PARAM_VALUE | 2 | cfg->fc_encap | 0 |
| PARAM_VALUE | 2 | cfg->fc_encap_type | 0 |
| PARAM_VALUE | 2 | cfg->fc_flags | 0-6 |
| PARAM_VALUE | 2 | cfg->fc_flow | 0 |
| PARAM_VALUE | 2 | cfg->fc_gw4 | 0 |
| PARAM_VALUE | 2 | cfg->fc_gw_family | 0 |
| PARAM_VALUE | 2 | cfg->fc_mp | 0 |
| PARAM_VALUE | 2 | cfg->fc_mx | 0 |
| PARAM_VALUE | 2 | cfg->fc_nh_id | 0 |
| PARAM_VALUE | 2 | cfg->fc_oif | 0 |
| PARAM_VALUE | 2 | cfg->fc_priority | 0 |
| PARAM_VALUE | 2 | cfg->fc_scope | 0 |
| PARAM_VALUE | 2 | cfg->fc_table | 0 |
| PARAM_VALUE | 2 | cfg->fc_type | 0 |
| PARAM_VALUE | 3 | nh_weight | 1 |
| PARAM_VALUE | 4 | extack | 4971238048455385088 |
| PARAM_VALUE | 4 | extack->bad_attr | 0 |
| PARAM_VALUE | 4 | extack->policy | 0 |
| BUF_SIZE | 1 | nh | 120 |
| DATA_SOURCE | 0 | net | $0 |
| DATA_SOURCE | 4 | extack | $4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | cfg->fc_flags | 0-6 |
| UNITS | 0 | net | unit_byte |
| LOCK2 | global &rtnl_mutex | ||
| LOCK2 | 0 | &net->rtnl_mutex | |
| 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 &rx_queue_mutex | ||
| TYPE_LOCK | (struct net)->rtnl_mutex |
net/ipv4/fib_semantics.c fib_create_info() -> fib_nh_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| PARAM_VALUE | 2 | cfg | 1718700463136440320,2491509575282348032,8689399522901368832 |
| PARAM_VALUE | 2 | cfg->fc_dscp | 0,4-252 |
| PARAM_VALUE | 2 | cfg->fc_encap | 0,4096-ptr_max |
| PARAM_VALUE | 2 | cfg->fc_gw_family | 0,2,10 |
| PARAM_VALUE | 2 | cfg->fc_mp | 0 |
| PARAM_VALUE | 2 | cfg->fc_mp_len | 0-65531 |
| PARAM_VALUE | 2 | cfg->fc_nh_id | 0 |
| PARAM_VALUE | 2 | cfg->fc_nlflags | 0-u16max |
| PARAM_VALUE | 2 | cfg->fc_nlinfo.nl_net | 4096-ptr_max |
| PARAM_VALUE | 2 | cfg->fc_nlinfo.nlh | 0,4096-ptr_max |
| PARAM_VALUE | 2 | cfg->fc_type | 0-11 |
| PARAM_VALUE | 3 | nh_weight | 1 |
| PARAM_VALUE | 4 | extack | 0,4971238048455385088 |
| PARAM_VALUE | 4 | extack->bad_attr | 0 |
| PARAM_VALUE | 4 | extack->policy | 0 |
| BUF_SIZE | 1 | nh | 0-120 |
| CAPPED_DATA | 2 | cfg->fc_type | 1 |
| DATA_SOURCE | 2 | cfg | $0 |
| DATA_SOURCE | 4 | extack | $1 |
| FUZZY_MAX | 2 | cfg->fc_type | 11 |
| BIT_INFO | 2 | cfg->fc_flags | 0x0,0xffffffee |
| HARD_MAX | 2 | cfg->fc_type | 11 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | cfg->fc_dscp | 0,4-252[c] |
| USER_DATA | 2 | cfg->fc_flags | 0 |
| USER_DATA | 2 | cfg->fc_gw4 | 0 |
| USER_DATA | 2 | cfg->fc_mp_len | 0-65531[c] |
| USER_DATA | 2 | cfg->fc_mx_len | 0-65531[c] |
| USER_DATA | 2 | cfg->fc_nlflags | 1-u16max[u] |
| USER_DATA | 2 | cfg->fc_priority | 0-32766,4294934527-4294967294 |
| USER_DATA | 2 | cfg->fc_protocol | 0 |
| USER_DATA | 2 | cfg->fc_scope | 0 |
| UNITS | 0 | net | unit_byte |
| USER_PTR | 2 | cfg->fc_mp | |
| USER_PTR | 2 | cfg->fc_mx | |
| USER_PTR | 2 | cfg->fc_nlinfo.nlh | |
| HALF_LOCKED2 | &net->rtnl_mutex | ||
| HALF_LOCKED2 | global &rtnl_mutex |
net/ipv4/fib_semantics.c fib_get_nhs() -> fib_nh_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| PARAM_VALUE | 2 | cfg | 6355630474938265600 |
| PARAM_VALUE | 2 | cfg->fc_encap | 0,4096-ptr_max |
| PARAM_VALUE | 2 | cfg->fc_gw_family | 0,2,10 |
| PARAM_VALUE | 4 | extack | 0,4971238048455385088 |
| DATA_SOURCE | 4 | extack | $4 |
| MEM_ZERO | 2 | cfg | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | net | unit_byte |
| HALF_LOCKED2 | &net->rtnl_mutex | ||
| HALF_LOCKED2 | global &rtnl_mutex |