15 #include <linux/module.h>
17 #include <linux/sched.h>
25 void *
buffer,
size_t buffer_size)
28 int msize, read_count;
33 if (IS_ERR(attr_fid)) {
34 retval = PTR_ERR(attr_fid);
45 if (attr_size > buffer_size) {
49 msize = attr_fid->
clnt->msize;
54 read_count = attr_size;
56 NULL, offset, read_count);
63 attr_size -= read_count;
86 void *
buffer,
size_t buffer_size)
115 int retval, msize, write_count;
119 name, value_len, flags);
123 retval = PTR_ERR(fid);
136 msize = fid->
clnt->msize;
143 NULL, offset, write_count);
144 if (write_count < 0) {
146 retval = write_count;
149 offset += write_count;
150 value_len -= write_count;
167 #ifdef CONFIG_9P_FS_POSIX_ACL