Lines Matching +full:nfs +full:- +full:kernel +full:- +full:server
3 /*-
32 /*-
34 * use by the stand-alone I/O library NFS code. This interface
37 * parameters, and performing the NFS mount.
41 * find interface - netif_open()
42 * RARP for IP address - rarp_getipaddress()
43 * RPC/bootparams - callrpc(d, RPC_BOOTPARAMS, ...)
44 * RPC/mountd - nfs_mount(sock, ip, path)
47 * for use by the NFS open code (NFS/lookup).
70 static int netdev_sock = -1;
99 { "nfs:/", NET_NFS },
110 * Called by devopen after it sets f->f_dev to our devsw entry.
111 * This opens the low-level device and sets dev->d_opendata.
127 devname = dev->d_dev->dv_name; in net_open()
156 netdev_sock = -1; in net_open()
161 * Set the variables required by the kernel's nfs_diskless in net_open()
167 setenv("boot.netif.hwaddr", ether_sprintf(d->myea), 1); in net_open()
171 setenv("boot.netif.server", inet_ntoa(rootip), 1); in net_open()
173 setenv("boot.tftproot.server", inet_ntoa(rootip), 1); in net_open()
176 setenv("boot.nfsroot.server", inet_ntoa(rootip), 1); in net_open()
187 dev->d_opendata = &netdev_sock; in net_open()
198 dev = f->f_devdata; in net_close()
199 dev->d_opendata = NULL; in net_close()
213 netdev_sock = -1; in net_cleanup()
228 * Get info for NFS boot: our IP address, our hostname,
229 * server IP address, and our root path on the server.
234 * (because that is what the kernel will do).
253 * the server IP address, gateway, and root path will all in net_getparams()
274 /* Get our hostname, server IP address, gateway. */ in net_getparams()
300 /* Get the root server and pathname. */ in net_getparams()
310 DEBUG_PRINTF(1,("%s: server addr: %s\n", __func__, inet_ntoa(rootip))); in net_getparams()
311 DEBUG_PRINTF(1,("%s: server port: %d\n", __func__, rootport)); in net_getparams()
312 DEBUG_PRINTF(1,("%s: server path: %s\n", __func__, rootpath)); in net_getparams()
334 for (i = 0; i < drv->netif_nifs; i++) { in net_print()
337 printf(" (%s%d)", drv->netif_bname, in net_print()
338 drv->netif_ifs[i].dif_unit); in net_print()
354 * For compatibility with previous behaviour it also accepts as an NFS scheme
360 * NFS.
404 (int)((uintptr_t)val - (uintptr_t)ptr), in net_parse_rootpath()
410 ptr--; in net_parse_rootpath()