Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 8 files:
- drivers/net/ovpn/netlink.c, line 578
- net/core/dev.c, line 12792
- net/core/net_namespace.c, line 350
- net/core/netdev-genl.c, line 425
- net/core/rtnetlink.c, line 1939
- net/devlink/netlink.c, line 158
- net/openvswitch/datapath.c, line 2178
- net/psp/psp_nl.c, line 262
Smatch caller information:
drivers/net/ovpn/netlink.c ovpn_nl_send_peer() -> peernet2id_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | gfp | 2080 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | rcu_read |
net/openvswitch/datapath.c ovs_vport_cmd_fill_info() -> peernet2id_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | gfp | 2080 |
| DATA_SOURCE | 0 | net | $2 |
| PARAM_COMPARE | 0 | net | != $1 |
| PARAM_COMPARE | 0 | net | != $1 |
| PARAM_COMPARE | 1 | peer | != $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | peer | unit_byte |
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | global &ovs_mutex |
net/core/netdev-genl.c netdev_nl_queue_fill_lease() -> peernet2id_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | gfp | 2080 |
| PARAM_COMPARE | 0 | net | != $1 |
| PARAM_COMPARE | 0 | net | != $1 |
| PARAM_COMPARE | 1 | peer | != $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | net | unit_byte |
| UNITS | 1 | peer | unit_byte |
| LOCK2 | rcu_read |
net/devlink/netlink.c devlink_nl_put_nested_handle() -> peernet2id_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | gfp | 2080 |
| BUF_SIZE | 0 | net | (-1),10432,10496 |
| BUF_SIZE | 0 | net | (-1),10432,10496 |
| DATA_SOURCE | 0 | net | $1 |
| PARAM_COMPARE | 0 | net | != $1 |
| PARAM_COMPARE | 1 | peer | != $0 |
| PARAM_COMPARE | 1 | peer | != $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | net | unit_byte |
| UNITS | 1 | peer | unit_byte |
| LOCK2 | rcu_read |
net/psp/psp_nl.c psp_nl_fill_assoc_dev_list() -> peernet2id_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | gfp | 3264 |
| DATA_SOURCE | 0 | net | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | net | unit_byte |
| UNITS | 1 | peer | unit_byte |
| HALF_LOCKED2 | &psd->lock | ||
| HALF_LOCKED2 | global &psp_devs_lock |
net/core/dev.c __dev_change_net_namespace() -> peernet2id_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| PARAM_VALUE | 1 | peer->dev_by_index.xa_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 2 | gfp | 3264 |
| BUF_SIZE | 1 | peer | (-1),10304,10432 |
| BUF_SIZE | 1 | peer | (-1),10304,10432 |
| DATA_SOURCE | 1 | peer | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | peer | unit_byte |
| HALF_LOCKED2 | global &rtnl_mutex |
net/core/rtnetlink.c rtnl_fill_link_netnsid() -> peernet2id_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | gfp | 2080 |
| BUF_SIZE | 0 | net | (-1),10304,10432,10496 |
| BUF_SIZE | 0 | net | (-1),10304,10432,10496 |
| DATA_SOURCE | 0 | net | $2 |
| DATA_SOURCE | 2 | gfp | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | net | unit_byte |
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | &dev->ethtool->rss_lock | ||
| HALF_LOCKED2 | &dev->lock |