diff options
Diffstat (limited to 'include/linux/kfifo.h')
-rw-r--r-- | include/linux/kfifo.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/include/linux/kfifo.h b/include/linux/kfifo.h index ad6bdf5a5970..c3f8d82efd34 100644 --- a/include/linux/kfifo.h +++ b/include/linux/kfifo.h | |||
@@ -1,6 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * A simple kernel FIFO implementation. | 2 | * A generic kernel FIFO implementation. |
3 | * | 3 | * |
4 | * Copyright (C) 2009 Stefani Seibold <stefani@seibold.net> | ||
4 | * Copyright (C) 2004 Stelian Pop <stelian@popies.net> | 5 | * Copyright (C) 2004 Stelian Pop <stelian@popies.net> |
5 | * | 6 | * |
6 | * This program is free software; you can redistribute it and/or modify | 7 | * This program is free software; you can redistribute it and/or modify |
@@ -32,10 +33,10 @@ struct kfifo { | |||
32 | spinlock_t *lock; /* protects concurrent modifications */ | 33 | spinlock_t *lock; /* protects concurrent modifications */ |
33 | }; | 34 | }; |
34 | 35 | ||
35 | extern struct kfifo *kfifo_init(unsigned char *buffer, unsigned int size, | 36 | extern void kfifo_init(struct kfifo *fifo, unsigned char *buffer, |
36 | gfp_t gfp_mask, spinlock_t *lock); | 37 | unsigned int size, spinlock_t *lock); |
37 | extern struct kfifo *kfifo_alloc(unsigned int size, gfp_t gfp_mask, | 38 | extern __must_check int kfifo_alloc(struct kfifo *fifo, unsigned int size, |
38 | spinlock_t *lock); | 39 | gfp_t gfp_mask, spinlock_t *lock); |
39 | extern void kfifo_free(struct kfifo *fifo); | 40 | extern void kfifo_free(struct kfifo *fifo); |
40 | extern unsigned int __kfifo_put(struct kfifo *fifo, | 41 | extern unsigned int __kfifo_put(struct kfifo *fifo, |
41 | const unsigned char *buffer, unsigned int len); | 42 | const unsigned char *buffer, unsigned int len); |