diff options
-rw-r--r-- | samples/kfifo/bytestream-example.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/samples/kfifo/bytestream-example.c b/samples/kfifo/bytestream-example.c index 642eef3f6336..2e3a7a8128a2 100644 --- a/samples/kfifo/bytestream-example.c +++ b/samples/kfifo/bytestream-example.c | |||
@@ -73,6 +73,10 @@ static int __init testfunc(void) | |||
73 | ret = kfifo_in(&test, buf, ret); | 73 | ret = kfifo_in(&test, buf, ret); |
74 | printk(KERN_INFO "ret: %d\n", ret); | 74 | printk(KERN_INFO "ret: %d\n", ret); |
75 | 75 | ||
76 | /* skip first element of the fifo */ | ||
77 | printk(KERN_INFO "skip 1st element\n"); | ||
78 | kfifo_skip(&test); | ||
79 | |||
76 | /* put values into the fifo until is full */ | 80 | /* put values into the fifo until is full */ |
77 | for (i = 20; kfifo_put(&test, &i); i++) | 81 | for (i = 20; kfifo_put(&test, &i); i++) |
78 | ; | 82 | ; |