Lines Matching defs:netdev_sock
58 static int netdev_sock = -1;
81 if (netdev_sock < 0) {
82 netdev_sock = pxe_netif_open();
83 if (netdev_sock < 0) {
92 error = net_getparams(netdev_sock);
95 pxe_netif_close(netdev_sock);
96 netdev_sock = -1;
102 f->f_devdata = &netdev_sock;
125 if (netdev_sock >= 0) {
128 pxe_netif_close(netdev_sock);
129 netdev_sock = -1;