Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
net/netfilter/nf_tables_api.c nf_tables_addchain() -> nf_tables_register_hook()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| PARAM_VALUE | 1 | table | 4096-ptr_max |
| PARAM_VALUE | 1 | table->chains_ht.ht.tbl | 4096-ptr_max |
| PARAM_VALUE | 2 | chain | 4096-ptr_max |
| PARAM_VALUE | 2 | chain->blob_gen_0 | 4096-ptr_max |
| PARAM_VALUE | 2 | chain->blob_gen_0->size | 0 |
| PARAM_VALUE | 2 | chain->blob_gen_1 | 4096-ptr_max |
| PARAM_VALUE | 2 | chain->blob_gen_1->size | 0 |
| PARAM_VALUE | 2 | chain->flags | 0-6 |
| PARAM_VALUE | 2 | chain->name | 4096-ptr_max |
| PARAM_VALUE | 2 | chain->rules.next | 4096-ptr_max |
| PARAM_VALUE | 2 | chain->rules.next->next | 4096-ptr_max |
| PARAM_VALUE | 2 | chain->rules.prev | 4096-ptr_max |
| PARAM_VALUE | 2 | chain->rules.prev->next | 4096-ptr_max |
| PARAM_VALUE | 2 | chain->rules.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 2 | chain->table | 4096-ptr_max |
| BUF_SIZE | 2 | chain | 128 |
| BUF_SIZE | 2 | chain->blob_gen_0 | 48 |
| BUF_SIZE | 2 | chain->blob_gen_1 | 48 |
| BUF_SIZE | 2 | chain->name | (-1),1-65536 |
| BUF_SIZE | 2 | chain->udata | s32min-s32max |
| CAPPED_DATA | 1 | table->chains_ht.ht.tbl | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | chain->flags | 0-6 |
| USER_DATA | 2 | *chain->name | 0-255 |
| UNITS | 0 | net | unit_byte |
| USER_PTR | 2 | chain->name | |
| HALF_LOCKED2 | &nft_net->commit_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| 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 nf_tables_table_enable() -> nf_tables_register_hook()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| PARAM_VALUE | 0 | net->gen | 4096-ptr_max |
| PARAM_VALUE | 1 | table | 4096-ptr_max |
| PARAM_VALUE | 1 | table->flags | 0,2-254 |
| PARAM_VALUE | 2 | chain | 4096-ptr_max |
| PARAM_VALUE | 2 | chain->flags | 1-31 |
| CAPPED_DATA | 0 | net->gen | 1 |
| CAPPED_DATA | 1 | table | 1 |
| CAPPED_DATA | 1 | &table->chains | 1 |
| CAPPED_DATA | 2 | &chain->list | 1 |
| DATA_SOURCE | 0 | net | $0 |
| DATA_SOURCE | 1 | table | $1 |
| BIT_INFO | 1 | table->flags | 0x0,0xc6 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | net | unit_byte |
| HALF_LOCKED2 | &nft_net->commit_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| 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 |