Lines Matching defs:buf
32 * @buf: Domainname to transit to.
33 * @count: Size of @buf.
41 static ssize_t tomoyo_write_self(struct file *file, const char __user *buf,
49 data = memdup_user_nul(buf, count);
94 * @buf: Domainname which current thread belongs to.
95 * @count: Size of @buf.
100 static ssize_t tomoyo_read_self(struct file *file, char __user *buf,
112 if (copy_to_user(buf, domain + pos, len))
170 * @buf: Pointer to buffer.
171 * @count: Size of @buf.
176 static ssize_t tomoyo_read(struct file *file, char __user *buf, size_t count,
179 return tomoyo_read_control(file->private_data, buf, count);
186 * @buf: Pointer to buffer.
187 * @count: Size of @buf.
192 static ssize_t tomoyo_write(struct file *file, const char __user *buf,
195 return tomoyo_write_control(file->private_data, buf, count);