6 * Copyright (C) 1995, 1996 Olaf Kirch <okir@monad.swb.de>
17 nfssvc(int port, int nrservs)
19 struct nfsctl_arg arg;
22 fd = open("/proc/fs/nfsd/threads", O_WRONLY);
24 fd = open("/proc/fs/nfs/threads", O_WRONLY);
26 /* 2.5+ kernel with nfsd filesystem mounted.
27 * Just write the number in.
28 * Cannot handle port number yet, but does anyone care?
32 snprintf(buf, 20,"%d\n", nrservs);
33 n = write(fd, buf, strlen(buf));
41 arg.ca_version = NFSCTL_VERSION;
42 arg.ca_svc.svc_nthreads = nrservs;
43 arg.ca_svc.svc_port = port;
44 return nfsctl(NFSCTL_SVC, &arg, NULL);