Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 4 files:
- net/netfilter/core.c
- net/netfilter/nf_bpf_link.c, line 257
- net/netfilter/nf_tables_api.c
- net/netfilter/nft_chain_filter.c, line 360
Smatch caller information:
net/netfilter/nft_chain_filter.c nft_netdev_event() -> nf_register_net_hook()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | reg | 4096-ptr_max |
| PARAM_VALUE | 1 | reg->dev | 4096-ptr_max |
| BUF_SIZE | 1 | reg | 72 |
| DATA_SOURCE | 1 | reg | r kmemdup_noprof |
| LOCK2 | &nft_net->commit_mutex | ||
| TYPE_LOCK | (struct nftables_pernet)->commit_mutex |
net/netfilter/nf_bpf_link.c bpf_nf_link_attach() -> nf_register_net_hook()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | reg | 4096-ptr_max |
| PARAM_VALUE | 1 | reg->hook | 8026819787333742592 |
| PARAM_VALUE | 1 | reg->hook_ops_type | 2 |
| PARAM_VALUE | 1 | reg->hooknum | 0-4 |
| PARAM_VALUE | 1 | reg->pf | 2,10 |
| PARAM_VALUE | 1 | reg->priority | (-2147483647)-2147483646 |
| PARAM_VALUE | 1 | reg->priv | 4096-ptr_max |
net/netfilter/core.c nf_register_net_hooks() -> nf_register_net_hook()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | reg | 4096-ptr_max |
| BUF_SIZE | 0 | net | (-1)-s32max |
| BUF_SIZE | 0 | net | (-1)-s32max |
| BUF_SIZE | 0 | net->key_domain | (-1),24 |
| BUF_SIZE | 0 | net->ucounts | (-1),184 |
| DATA_SOURCE | 0 | net | $0 |
| STR_LEN | 0 | net | (-1),8 |
| STR_LEN | 0 | net | (-1),8 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | net | unit_byte |
| HALF_LOCKED2 | &ipvs->service_mutex | ||
| HALF_LOCKED2 | &port->pnodes_lock | ||
| HALF_LOCKED2 | global &defrag4_mutex | ||
| HALF_LOCKED2 | global &defrag6_mutex | ||
| HALF_LOCKED2 | global &ebt_mutex | ||
| HALF_LOCKED2 | global &ila_mutex | ||
| HALF_LOCKED2 | global &nf_ct_proto_mutex | ||
| HALF_LOCKED2 | global &nf_nat_proto_mutex | ||
| HALF_LOCKED2 | global &pernet_ops_rwsem | ||
| HALF_LOCKED2 | global &synproxy_mutex |
net/netfilter/nf_tables_api.c nf_tables_register_hook() -> nf_register_net_hook()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| PARAM_VALUE | 1 | reg | 4096-ptr_max |
| DATA_SOURCE | 0 | net | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | net | unit_byte |
| HALF_LOCKED2 | &nft_net->commit_mutex | ||
| HALF_LOCKED2 | global &audit_cmd_mutex.lock | ||
| HALF_LOCKED2 | global &hwsim_phys_lock | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | global &rx_queue_mutex | ||
| HALF_LOCKED2 | rcu_read |
net/netfilter/nf_tables_api.c nft_netdev_register_hooks() -> nf_register_net_hook()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| DATA_SOURCE | 0 | net | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | net | unit_byte |
| HALF_LOCKED2 | &nft_net->commit_mutex | ||
| HALF_LOCKED2 | global &audit_cmd_mutex.lock | ||
| HALF_LOCKED2 | global &hwsim_phys_lock | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | global &rx_queue_mutex | ||
| HALF_LOCKED2 | rcu_read |
net/netfilter/nf_tables_api.c nft_register_flowtable_ops() -> nf_register_net_hook()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | reg | 4096-ptr_max |
| BUF_SIZE | 1 | reg | (-1),72 |
| BUF_SIZE | 1 | reg | (-1),72 |
| BUF_SIZE | 1 | reg->priv | (-1),808 |
| DATA_SOURCE | 0 | net | $0 |
| DATA_SOURCE | 1 | reg | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | net | unit_byte |
| HALF_LOCKED2 | &nft_net->commit_mutex |