Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| operstate [2018/08/27 08:38] – [netif_oper_up()] rpjday | operstate [2018/08/27 11:07] (current) – [Testing under sysfs] rpjday | ||
|---|---|---|---|
| Line 66: | Line 66: | ||
| ==== include/ | ==== include/ | ||
| + | |||
| + | Possible values for '' | ||
| < | < | ||
| Line 116: | Line 118: | ||
| ===== Testing under sysfs ===== | ===== Testing under sysfs ===== | ||
| - | Unplugging and plugging: | + | Unplugging and plugging |
| < | < | ||
| Line 169: | Line 171: | ||
| </ | </ | ||
| ==== netif_carrier_ok() ==== | ==== netif_carrier_ok() ==== | ||
| + | |||
| + | This routine becomes important shortly: | ||
| < | < | ||
| Line 199: | Line 203: | ||
| struct net_device *netdev = to_net_dev(dev); | struct net_device *netdev = to_net_dev(dev); | ||
| - | if (netif_running(netdev)) | + | if (netif_running(netdev)) |
| return sprintf(buf, | return sprintf(buf, | ||