Searched refs:netdev_sock (Results 1 – 1 of 1) sorted by relevance
77 static int netdev_sock = -1; variable136 if (netdev_sock >= 0 && strcmp(devname, netdev_name) != 0) in net_open()142 if (netdev_sock < 0) { in net_open()143 netdev_sock = netif_open(dev); in net_open()144 if (netdev_sock < 0) { in net_open()161 error = net_getparams(netdev_sock); in net_open()165 netif_close(netdev_sock); in net_open()166 netdev_sock = -1; in net_open()176 d = socktodesc(netdev_sock); in net_open()196 dev->d_opendata = &netdev_sock; in net_open()[all …]