Defined in 2 files as a function:
- drivers/net/tun.c, line 725 (as a function)
- tools/testing/selftests/net/tun.c, line 125 (as a function)
Referenced in 2 files:
Smatch caller information:
drivers/net/tun.c tun_net_init() -> tun_attach()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tun | 4096-ptr_max |
| PARAM_VALUE | 0 | tun->ageing_time | 750 |
| PARAM_VALUE | 0 | tun->disabled.next | 4096-ptr_max |
| PARAM_VALUE | 0 | tun->disabled.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | tun->disabled.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | tun->disabled.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | tun->disabled.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | tun->flow_gc_timer.entry->pprev | 4096-ptr_max |
| PARAM_VALUE | 0 | tun->flow_gc_timer.entry.pprev | 0,4096-ptr_max |
| PARAM_VALUE | 0 | tun->flow_gc_timer.lockdep_map->name | 0-255 |
| PARAM_VALUE | 0 | tun->ifr | 4096-ptr_max |
| PARAM_VALUE | 0 | tun->security | 0,4096-ptr_max |
| PARAM_VALUE | 2 | skip_filter | 0 |
| PARAM_VALUE | 5 | publish_tun | 0 |
| BIT_INFO | 3 | napi | 0x0,0x10 |
| BIT_INFO | 4 | napi_frags | 0x0,0x20 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/net/tun.c tun_set_iff() -> tun_attach()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tun | 4096-ptr_max |
| PARAM_VALUE | 0 | tun->dev | 4096-ptr_max |
| PARAM_VALUE | 1 | file | 4096-ptr_max |
| PARAM_VALUE | 1 | file->private_data | 4096-ptr_max |
| PARAM_VALUE | 5 | publish_tun | 1 |
| CAPPED_DATA | 0 | tun->dev->nd_net.net | 1 |
| DATA_SOURCE | 1 | file | $1 |
| BIT_INFO | 2 | skip_filter | 0x0,0x1000 |
| BIT_INFO | 3 | napi | 0x0,0x10 |
| BIT_INFO | 4 | napi_frags | 0x0,0x20 |
| USER_DATA | 2 | skip_filter | 0-1[c] |
| USER_DATA | 3 | napi | 0-1[c] |
| USER_DATA | 4 | napi_frags | 0-1[c] |
| LOCK2 | global &rtnl_mutex |
drivers/net/tun.c tun_set_queue() -> tun_attach()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tun | 4096-ptr_max |
| PARAM_VALUE | 1 | file | 4096-ptr_max |
| PARAM_VALUE | 1 | file->private_data | 4096-ptr_max |
| PARAM_VALUE | 2 | skip_filter | 0 |
| PARAM_VALUE | 5 | publish_tun | 1 |
| DATA_SOURCE | 1 | file | $0 |
| BIT_INFO | 3 | napi | 0x0,0x10 |
| BIT_INFO | 4 | napi_frags | 0x0,0x20 |
| LOCK2 | global &rtnl_mutex |