Lines Matching defs:count
31 * @count: Size of @buf.
34 * Returns @count on success, negative value otherwise.
40 size_t count, loff_t *ppos)
44 if (!count || count >= TOMOYO_EXEC_TMPSIZE - 10)
46 data = kzalloc(count + 1, GFP_NOFS);
49 if (copy_from_user(data, buf, count)) {
92 return error ? error : count;
100 * @count: Size of @buf.
106 size_t count, loff_t *ppos)
111 if (pos >= len || !count)
114 if (count < len)
115 len = count;
174 * @count: Size of @buf.
179 static ssize_t tomoyo_read(struct file *file, char __user *buf, size_t count,
182 return tomoyo_read_control(file->private_data, buf, count);
190 * @count: Size of @buf.
193 * Returns @count on success, negative value otherwise.
196 size_t count, loff_t *ppos)
198 return tomoyo_write_control(file->private_data, buf, count);