diff options
| author | Stefani Seibold <[email protected]> | 2009-12-21 22:37:30 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2009-12-22 22:17:56 +0000 |
| commit | 37bdfbbfaab47811fcec84dff23c4e8da1a09f9e (patch) | |
| tree | 89e88b5859674b9d9255fa1a87aaf34090da574d /lib/debugobjects.c | |
| parent | kfifo: fix warn_unused_result (diff) | |
| download | kernel-37bdfbbfaab47811fcec84dff23c4e8da1a09f9e.tar.gz kernel-37bdfbbfaab47811fcec84dff23c4e8da1a09f9e.zip | |
kfifo: add DEFINE_KFIFO and friends, add very tiny functions
Add DECLARE_KFIFO - macro to declare a kfifo and the associated buffer inside a struct
Add INIT_KFIFO - Initialize a kfifo declared by DECLARED_KFIFO
Add DEFINE_KFIFO - macro to define and initialize a kfifo as a global or local object
Add kfifo_size() - returns the size of the fifo in bytes
Add kfifo_is_empty() - returns true if the fifo is empty
Add kfifo_is_full() - returns true if the fifo is full
Add kfifo_avail() - returns the number of bytes available in the FIFO
Do some code cleanup
Signed-off-by: Stefani Seibold <[email protected]>
Acked-by: Greg Kroah-Hartman <[email protected]>
Acked-by: Mauro Carvalho Chehab <[email protected]>
Acked-by: Andi Kleen <[email protected]>
Acked-by: Arnd Bergmann <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions
