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