KFIFO_INIT
Section: (9)
Updated: 09 October 2005
Index
Return to Main Contents
NAME
kfifo_init - allocates a new FIFO using a preallocated buffer
SYNOPSIS
"SYNOPSIS"
struct kfifo * kfifo_init (unsigned char * buffer, unsigned int size, unsigned int __nocast gfp_mask, spinlock_t * lock);
ARGUMENTS
- buffer
-
the preallocated buffer to be used.
- size
-
the size of the internal buffer, this have to be a power of 2.
- gfp_mask
-
get_free_pages mask, passed to kmalloc
- lock
-
the lock to be used to protect the fifo buffer
DESCRIPTION
Do NOT pass the kfifo to kfifo_free after use ! Simply free the
struct kfifo with kfree.
Index
- NAME
-
- SYNOPSIS
-
- ARGUMENTS
-
- DESCRIPTION
-
This document was created by
man2html,
using the manual pages.
Time: 00:02:22 GMT, October 09, 2005