Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

net/core/net_namespace.c peernet2id_alloc() -> alloc_netid()

Type Parameter Key Value
PARAM_VALUE 0 net 4096-ptr_max
PARAM_VALUE 0 net->nsid_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 peer 1-u64max
PARAM_VALUE 1 peer->ns.__ns_ref.refs.counter (-1073741824),0-s32max
PARAM_VALUE 2 reqid (-1)
BUF_SIZE 0 net (-1),10304,10432
BUF_SIZE 0 net (-1),10304,10432
BUF_SIZE 1 peer (-1),10304,10432
BUF_SIZE 1 peer (-1),10304,10432
DATA_SOURCE 0 net $0
DATA_SOURCE 1 peer $1
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
UNITS 0 net unit_byte
UNITS 1 peer unit_byte
LOCK2 0 &net->nsid_lock
HALF_LOCKED2 rcu_read
TYPE_LOCK (struct net)->nsid_lock

net/core/net_namespace.c rtnl_net_newid() -> alloc_netid()

Type Parameter Key Value
PARAM_VALUE 0 net 4096-ptr_max
PARAM_VALUE 0 net->nsid_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 peer 1-ptr_max
DATA_SOURCE 2 reqid r nla_get_s32
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
UNITS 0 net unit_byte
LOCK2 0 &net->nsid_lock
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
TYPE_LOCK (struct net)->nsid_lock