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/nfs/threads", O_WRONLY);
24 /* 2.5+ kernel with nfsd filesystem mounted.
25 * Just write the number in.
26 * Cannot handle port number yet, but does anyone care?
30 snprintf(buf, 20,"%d\n", nrservs);
31 n = write(fd, buf, strlen(buf));
39 arg.ca_version = NFSCTL_VERSION;
40 arg.ca_svc.svc_nthreads = nrservs;
41 arg.ca_svc.svc_port = port;
42 return nfsctl(NFSCTL_SVC, &arg, NULL);