Lines Matching full:fifo
15 * This module shows how to create a byte stream fifo.
18 /* fifo size in elements (bytes) */
22 #define PROC_FIFO "bytestream-fifo"
31 * define DYNAMIC in this example for a dynamically allocated fifo.
33 * Otherwise the fifo storage will be a part of the fifo structure.
58 printk(KERN_INFO "byte stream fifo test start\n"); in testfunc()
60 /* put string into the fifo */ in testfunc()
63 /* put values into the fifo */ in testfunc()
68 printk(KERN_INFO "fifo len: %u\n", kfifo_len(&test)); in testfunc()
70 /* get max of 5 bytes from the fifo */ in testfunc()
74 /* get max of 2 elements from the fifo */ in testfunc()
77 /* and put it back to the end of the fifo */ in testfunc()
81 /* skip first element of the fifo */ in testfunc()
85 /* put values into the fifo until is full */ in testfunc()
91 /* show the first value without removing from the fifo */ in testfunc()
95 /* check the correctness of all values in the fifo */ in testfunc()