Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
drivers/net/netdevsim/bpf.c nsim_bpf_map_alloc() -> nsim_map_alloc_elem()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | offmap | 4096-ptr_max |
| PARAM_VALUE | 0 | offmap->dev_priv | 4096-ptr_max |
| PARAM_VALUE | 0 | offmap->map.map_flags | 0 |
| PARAM_VALUE | 0 | offmap->map.map_type | 2 |
| PARAM_VALUE | 0 | offmap->map.max_entries | 0-2 |
| PARAM_VALUE | 0 | offmap->map.value_size | 0-u32max |
| PARAM_VALUE | 1 | idx | 0-1 |
| BUF_SIZE | 0 | offmap->dev_priv | 216 |
| DATA_SOURCE | 0 | offmap | $1 |
| FUZZY_MAX | 0 | offmap->map.max_entries | 2 |
| HARD_MAX | 0 | offmap->map.max_entries | 2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | idx | unit_array_size |
| LOCK2 | global &bpf_devs_lock | ||
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/netdevsim/bpf.c nsim_map_update_elem() -> nsim_map_alloc_elem()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | offmap | 4096-ptr_max |
| PARAM_VALUE | 0 | offmap->dev_ops | 4096-ptr_max |
| PARAM_VALUE | 0 | offmap->netdev | 1-u64max |
| PARAM_VALUE | 1 | idx | 0-1 |
| DATA_SOURCE | 0 | offmap | $0 |
| UNITS | 1 | idx | unit_array_size |
| LOCK2 | &nmap->mutex | ||
| LOCK2 | global &bpf_devs_lock | ||
| TYPE_LOCK | (struct nsim_bpf_bound_map)->mutex |