Lines Matching defs:buf
54 unsigned char buf[6];
71 i = kfifo_out(&test, buf, 5);
72 printk(KERN_INFO "buf: %.*s\n", i, buf);
75 ret = kfifo_out(&test, buf, 2);
78 ret = kfifo_in(&test, buf, ret);
113 static ssize_t fifo_write(struct file *file, const char __user *buf,
122 ret = kfifo_from_user(&test, buf, count, &copied);
131 static ssize_t fifo_read(struct file *file, char __user *buf,
140 ret = kfifo_to_user(&test, buf, count, &copied);