kfifo: add kfifo_out_peek
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / include / linux / kfifo.h
index 86ad50a900c8a6de172325c0721d7d3225618874..7ad6d32dd673d19b1a789bab112d81b5fdce7a3f 100644 (file)
@@ -113,6 +113,9 @@ extern unsigned int kfifo_in(struct kfifo *fifo,
                                const void *from, unsigned int len);
 extern __must_check unsigned int kfifo_out(struct kfifo *fifo,
                                void *to, unsigned int len);
+extern __must_check unsigned int kfifo_out_peek(struct kfifo *fifo,
+                               void *to, unsigned int len, unsigned offset);
+
 
 /**
  * kfifo_reset - removes the entire FIFO contents