• Home
  • Raw
  • Download

Lines Matching refs:size

60 static ssize_t write_filehandle(struct file *file, char *buf, size_t size);
61 static ssize_t write_unlock_ip(struct file *file, char *buf, size_t size);
62 static ssize_t write_unlock_fs(struct file *file, char *buf, size_t size);
63 static ssize_t write_threads(struct file *file, char *buf, size_t size);
64 static ssize_t write_pool_threads(struct file *file, char *buf, size_t size);
65 static ssize_t write_versions(struct file *file, char *buf, size_t size);
66 static ssize_t write_ports(struct file *file, char *buf, size_t size);
67 static ssize_t write_maxblksize(struct file *file, char *buf, size_t size);
68 static ssize_t write_maxconn(struct file *file, char *buf, size_t size);
70 static ssize_t write_leasetime(struct file *file, char *buf, size_t size);
71 static ssize_t write_gracetime(struct file *file, char *buf, size_t size);
72 static ssize_t write_recoverydir(struct file *file, char *buf, size_t size);
73 static ssize_t write_v4_end_grace(struct file *file, char *buf, size_t size);
94 static ssize_t nfsctl_transaction_write(struct file *file, const char __user *buf, size_t size, lof… in nfsctl_transaction_write() argument
103 data = simple_transaction_get(file, buf, size); in nfsctl_transaction_write()
107 rv = write_op[ino](file, data, size); in nfsctl_transaction_write()
110 rv = size; in nfsctl_transaction_write()
115 static ssize_t nfsctl_transaction_read(struct file *file, char __user *buf, size_t size, loff_t *po… in nfsctl_transaction_read() argument
126 return simple_transaction_read(file, buf, size, pos); in nfsctl_transaction_read()
254 static ssize_t write_unlock_ip(struct file *file, char *buf, size_t size) in write_unlock_ip() argument
263 if (size == 0) in write_unlock_ip()
266 if (buf[size-1] != '\n') in write_unlock_ip()
270 if (qword_get(&buf, fo_path, size) < 0) in write_unlock_ip()
273 if (rpc_pton(net, fo_path, size, sap, salen) == 0) in write_unlock_ip()
293 static ssize_t write_unlock_fs(struct file *file, char *buf, size_t size) in write_unlock_fs() argument
300 if (size == 0) in write_unlock_fs()
303 if (buf[size-1] != '\n') in write_unlock_fs()
307 if (qword_get(&buf, fo_path, size) < 0) in write_unlock_fs()
350 static ssize_t write_filehandle(struct file *file, char *buf, size_t size) in write_filehandle() argument
359 if (size == 0) in write_filehandle()
362 if (buf[size-1] != '\n') in write_filehandle()
364 buf[size-1] = 0; in write_filehandle()
367 len = qword_get(&mesg, dname, size); in write_filehandle()
372 len = qword_get(&mesg, path, size); in write_filehandle()
384 if (qword_get(&mesg, mesg, size)>0) in write_filehandle()
432 static ssize_t write_threads(struct file *file, char *buf, size_t size) in write_threads() argument
438 if (size > 0) { in write_threads()
476 static ssize_t write_pool_threads(struct file *file, char *buf, size_t size) in write_pool_threads() argument
507 if (size > 0) { in write_pool_threads()
528 size = SIMPLE_TRANSACTION_LIMIT; in write_pool_threads()
529 for (i = 0; i < npools && size > 0; i++) { in write_pool_threads()
530 snprintf(mesg, size, "%d%c", nthreads[i], (i == npools-1 ? '\n' : ' ')); in write_pool_threads()
532 size -= len; in write_pool_threads()
542 static ssize_t __write_versions(struct file *file, char *buf, size_t size) in __write_versions() argument
552 if (size>0) { in __write_versions()
559 if (buf[size-1] != '\n') in __write_versions()
561 buf[size-1] = 0; in __write_versions()
564 len = qword_get(&mesg, vers, size); in __write_versions()
594 } while ((len = qword_get(&mesg, vers, size)) > 0); in __write_versions()
672 static ssize_t write_versions(struct file *file, char *buf, size_t size) in write_versions() argument
677 rv = __write_versions(file, buf, size); in write_versions()
778 static ssize_t __write_ports(struct file *file, char *buf, size_t size, in __write_ports() argument
781 if (size == 0) in __write_ports()
836 static ssize_t write_ports(struct file *file, char *buf, size_t size) in write_ports() argument
841 rv = __write_ports(file, buf, size, netns(file)); in write_ports()
870 static ssize_t write_maxblksize(struct file *file, char *buf, size_t size) in write_maxblksize() argument
875 if (size > 0) { in write_maxblksize()
919 static ssize_t write_maxconn(struct file *file, char *buf, size_t size) in write_maxconn() argument
925 if (size > 0) { in write_maxconn()
937 static ssize_t __nfsd4_write_time(struct file *file, char *buf, size_t size, in __nfsd4_write_time() argument
943 if (size > 0) { in __nfsd4_write_time()
969 static ssize_t nfsd4_write_time(struct file *file, char *buf, size_t size, in nfsd4_write_time() argument
975 rv = __nfsd4_write_time(file, buf, size, time, nn); in nfsd4_write_time()
1001 static ssize_t write_leasetime(struct file *file, char *buf, size_t size) in write_leasetime() argument
1004 return nfsd4_write_time(file, buf, size, &nn->nfsd4_lease, nn); in write_leasetime()
1017 static ssize_t write_gracetime(struct file *file, char *buf, size_t size) in write_gracetime() argument
1020 return nfsd4_write_time(file, buf, size, &nn->nfsd4_grace, nn); in write_gracetime()
1023 static ssize_t __write_recoverydir(struct file *file, char *buf, size_t size, in __write_recoverydir() argument
1030 if (size > 0) { in __write_recoverydir()
1033 if (size > PATH_MAX || buf[size-1] != '\n') in __write_recoverydir()
1035 buf[size-1] = 0; in __write_recoverydir()
1038 len = qword_get(&mesg, recdir, size); in __write_recoverydir()
1072 static ssize_t write_recoverydir(struct file *file, char *buf, size_t size) in write_recoverydir() argument
1078 rv = __write_recoverydir(file, buf, size, nn); in write_recoverydir()
1103 static ssize_t write_v4_end_grace(struct file *file, char *buf, size_t size) in write_v4_end_grace() argument
1107 if (size > 0) { in write_v4_end_grace()
1250 .size = sizeof(struct nfsd_net),