Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 209670
b: refs/heads/master
c: 5ddf839
h: refs/heads/master
v: v3
  • Loading branch information
Andrea Righi authored and Linus Torvalds committed Aug 20, 2010
1 parent 91348d4 commit f1ea4b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b35de43b31040828f83046f40fd34ba33146409d
refs/heads/master: 5ddf83912c8b49a24ab0841f6d77f33781dcf10f
4 changes: 4 additions & 0 deletions trunk/samples/kfifo/bytestream-example.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ static int __init testfunc(void)
ret = kfifo_in(&test, buf, ret);
printk(KERN_INFO "ret: %d\n", ret);

/* skip first element of the fifo */
printk(KERN_INFO "skip 1st element\n");
kfifo_skip(&test);

/* put values into the fifo until is full */
for (i = 20; kfifo_put(&test, &i); i++)
;
Expand Down

0 comments on commit f1ea4b8

Please sign in to comment.