/* Input: buf: struct nfsctl_svc svc_port: port number of this server's listener svc_nthreads: number of threads to start size: size in bytes of passed in nfsctl_svc Output: On success: returns zero On error: return code is negative errno value  */
static ssize_t write_svc(struct file *file, char *buf, size_t size)
/* Input: buf: struct nfsctl_svc svc_port: port number of this server's listener svc_nthreads: number of threads to start size: size in bytes of passed in nfsctl_svc Output: On success: returns zero On error: return code is negative errno value  */
static ssize_t write_svc(struct file *file, char *buf, size_t size)
{
	struct nfsctl_svc *data;
	int err;
	if (size < sizeof(*data))
		return -EINVAL;
	data = (struct nfsctl_svc*) buf;
	err = nfsd_svc(data->svc_port, data->svc_nthreads);
	if (err < 0)
		return err;
	return 0;
}