Lines Matching refs:count
40 size_t count, loff_t *ppos) in tomoyo_write_self() argument
44 if (!count || count >= TOMOYO_EXEC_TMPSIZE - 10) in tomoyo_write_self()
46 data = kzalloc(count + 1, GFP_NOFS); in tomoyo_write_self()
49 if (copy_from_user(data, buf, count)) { in tomoyo_write_self()
92 return error ? error : count; in tomoyo_write_self()
106 size_t count, loff_t *ppos) in tomoyo_read_self() argument
111 if (pos >= len || !count) in tomoyo_read_self()
114 if (count < len) in tomoyo_read_self()
115 len = count; in tomoyo_read_self()
179 static ssize_t tomoyo_read(struct file *file, char __user *buf, size_t count, in tomoyo_read() argument
182 return tomoyo_read_control(file->private_data, buf, count); in tomoyo_read()
196 size_t count, loff_t *ppos) in tomoyo_write() argument
198 return tomoyo_write_control(file->private_data, buf, count); in tomoyo_write()