Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
kfifo.c File Reference
#include <linux/kernel.h>
#include <linux/export.h>
#include <linux/slab.h>
#include <linux/err.h>
#include <linux/log2.h>
#include <linux/uaccess.h>
#include <linux/kfifo.h>

Go to the source code of this file.

Macros

#define __KFIFO_PEEK(data, out, mask)   ((data)[(out) & (mask)])
 
#define __KFIFO_POKE(data, in, mask, val)
 

Functions

int __kfifo_alloc (struct __kfifo *fifo, unsigned int size, size_t esize, gfp_t gfp_mask)
 
 EXPORT_SYMBOL (__kfifo_alloc)
 
void __kfifo_free (struct __kfifo *fifo)
 
 EXPORT_SYMBOL (__kfifo_free)
 
int __kfifo_init (struct __kfifo *fifo, void *buffer, unsigned int size, size_t esize)
 
 EXPORT_SYMBOL (__kfifo_init)
 
unsigned int __kfifo_in (struct __kfifo *fifo, const void *buf, unsigned int len)
 
 EXPORT_SYMBOL (__kfifo_in)
 
unsigned int __kfifo_out_peek (struct __kfifo *fifo, void *buf, unsigned int len)
 
 EXPORT_SYMBOL (__kfifo_out_peek)
 
unsigned int __kfifo_out (struct __kfifo *fifo, void *buf, unsigned int len)
 
 EXPORT_SYMBOL (__kfifo_out)
 
int __kfifo_from_user (struct __kfifo *fifo, const void __user *from, unsigned long len, unsigned int *copied)
 
 EXPORT_SYMBOL (__kfifo_from_user)
 
int __kfifo_to_user (struct __kfifo *fifo, void __user *to, unsigned long len, unsigned int *copied)
 
 EXPORT_SYMBOL (__kfifo_to_user)
 
unsigned int __kfifo_dma_in_prepare (struct __kfifo *fifo, struct scatterlist *sgl, int nents, unsigned int len)
 
 EXPORT_SYMBOL (__kfifo_dma_in_prepare)
 
unsigned int __kfifo_dma_out_prepare (struct __kfifo *fifo, struct scatterlist *sgl, int nents, unsigned int len)
 
 EXPORT_SYMBOL (__kfifo_dma_out_prepare)
 
unsigned int __kfifo_max_r (unsigned int len, size_t recsize)
 
 EXPORT_SYMBOL (__kfifo_max_r)
 
unsigned int __kfifo_len_r (struct __kfifo *fifo, size_t recsize)
 
 EXPORT_SYMBOL (__kfifo_len_r)
 
unsigned int __kfifo_in_r (struct __kfifo *fifo, const void *buf, unsigned int len, size_t recsize)
 
 EXPORT_SYMBOL (__kfifo_in_r)
 
unsigned int __kfifo_out_peek_r (struct __kfifo *fifo, void *buf, unsigned int len, size_t recsize)
 
 EXPORT_SYMBOL (__kfifo_out_peek_r)
 
unsigned int __kfifo_out_r (struct __kfifo *fifo, void *buf, unsigned int len, size_t recsize)
 
 EXPORT_SYMBOL (__kfifo_out_r)
 
void __kfifo_skip_r (struct __kfifo *fifo, size_t recsize)
 
 EXPORT_SYMBOL (__kfifo_skip_r)
 
int __kfifo_from_user_r (struct __kfifo *fifo, const void __user *from, unsigned long len, unsigned int *copied, size_t recsize)
 
 EXPORT_SYMBOL (__kfifo_from_user_r)
 
int __kfifo_to_user_r (struct __kfifo *fifo, void __user *to, unsigned long len, unsigned int *copied, size_t recsize)
 
 EXPORT_SYMBOL (__kfifo_to_user_r)
 
unsigned int __kfifo_dma_in_prepare_r (struct __kfifo *fifo, struct scatterlist *sgl, int nents, unsigned int len, size_t recsize)
 
 EXPORT_SYMBOL (__kfifo_dma_in_prepare_r)
 
void __kfifo_dma_in_finish_r (struct __kfifo *fifo, unsigned int len, size_t recsize)
 
 EXPORT_SYMBOL (__kfifo_dma_in_finish_r)
 
unsigned int __kfifo_dma_out_prepare_r (struct __kfifo *fifo, struct scatterlist *sgl, int nents, unsigned int len, size_t recsize)
 
 EXPORT_SYMBOL (__kfifo_dma_out_prepare_r)
 
void __kfifo_dma_out_finish_r (struct __kfifo *fifo, size_t recsize)
 
 EXPORT_SYMBOL (__kfifo_dma_out_finish_r)
 

Macro Definition Documentation

#define __KFIFO_PEEK (   data,
  out,
  mask 
)    ((data)[(out) & (mask)])

Definition at line 407 of file kfifo.c.

#define __KFIFO_POKE (   data,
  in,
  mask,
  val 
)
Value:
( \
(data)[(in) & (mask)] = (unsigned char)(val) \
)

Definition at line 427 of file kfifo.c.

Function Documentation

int __kfifo_alloc ( struct __kfifo fifo,
unsigned int  size,
size_t  esize,
gfp_t  gfp_mask 
)

Definition at line 38 of file kfifo.c.

void __kfifo_dma_in_finish_r ( struct __kfifo fifo,
unsigned int  len,
size_t  recsize 
)

Definition at line 578 of file kfifo.c.

unsigned int __kfifo_dma_in_prepare ( struct __kfifo fifo,
struct scatterlist sgl,
int  nents,
unsigned int  len 
)

Definition at line 371 of file kfifo.c.

unsigned int __kfifo_dma_in_prepare_r ( struct __kfifo fifo,
struct scatterlist sgl,
int  nents,
unsigned int  len,
size_t  recsize 
)

Definition at line 563 of file kfifo.c.

void __kfifo_dma_out_finish_r ( struct __kfifo fifo,
size_t  recsize 
)

Definition at line 602 of file kfifo.c.

unsigned int __kfifo_dma_out_prepare ( struct __kfifo fifo,
struct scatterlist sgl,
int  nents,
unsigned int  len 
)

Definition at line 384 of file kfifo.c.

unsigned int __kfifo_dma_out_prepare_r ( struct __kfifo fifo,
struct scatterlist sgl,
int  nents,
unsigned int  len,
size_t  recsize 
)

Definition at line 587 of file kfifo.c.

void __kfifo_free ( struct __kfifo fifo)

Definition at line 70 of file kfifo.c.

int __kfifo_from_user ( struct __kfifo fifo,
const void __user from,
unsigned long  len,
unsigned int copied 
)

Definition at line 225 of file kfifo.c.

int __kfifo_from_user_r ( struct __kfifo fifo,
const void __user from,
unsigned long  len,
unsigned int copied,
size_t  recsize 
)

Definition at line 514 of file kfifo.c.

unsigned int __kfifo_in ( struct __kfifo fifo,
const void buf,
unsigned int  len 
)

Definition at line 128 of file kfifo.c.

unsigned int __kfifo_in_r ( struct __kfifo fifo,
const void buf,
unsigned int  len,
size_t  recsize 
)

Definition at line 453 of file kfifo.c.

int __kfifo_init ( struct __kfifo fifo,
void buffer,
unsigned int  size,
size_t  esize 
)

Definition at line 81 of file kfifo.c.

unsigned int __kfifo_len_r ( struct __kfifo fifo,
size_t  recsize 
)

Definition at line 447 of file kfifo.c.

unsigned int __kfifo_max_r ( unsigned int  len,
size_t  recsize 
)

Definition at line 397 of file kfifo.c.

unsigned int __kfifo_out ( struct __kfifo fifo,
void buf,
unsigned int  len 
)

Definition at line 181 of file kfifo.c.

unsigned int __kfifo_out_peek ( struct __kfifo fifo,
void buf,
unsigned int  len 
)

Definition at line 167 of file kfifo.c.

unsigned int __kfifo_out_peek_r ( struct __kfifo fifo,
void buf,
unsigned int  len,
size_t  recsize 
)

Definition at line 479 of file kfifo.c.

unsigned int __kfifo_out_r ( struct __kfifo fifo,
void buf,
unsigned int  len,
size_t  recsize 
)

Definition at line 491 of file kfifo.c.

void __kfifo_skip_r ( struct __kfifo fifo,
size_t  recsize 
)

Definition at line 505 of file kfifo.c.

int __kfifo_to_user ( struct __kfifo fifo,
void __user to,
unsigned long  len,
unsigned int copied 
)

Definition at line 285 of file kfifo.c.

int __kfifo_to_user_r ( struct __kfifo fifo,
void __user to,
unsigned long  len,
unsigned int copied,
size_t  recsize 
)

Definition at line 538 of file kfifo.c.

EXPORT_SYMBOL ( __kfifo_alloc  )
EXPORT_SYMBOL ( __kfifo_free  )
EXPORT_SYMBOL ( __kfifo_init  )
EXPORT_SYMBOL ( __kfifo_in  )
EXPORT_SYMBOL ( __kfifo_out_peek  )
EXPORT_SYMBOL ( __kfifo_out  )
EXPORT_SYMBOL ( __kfifo_from_user  )
EXPORT_SYMBOL ( __kfifo_to_user  )
EXPORT_SYMBOL ( __kfifo_dma_in_prepare  )
EXPORT_SYMBOL ( __kfifo_dma_out_prepare  )
EXPORT_SYMBOL ( __kfifo_max_r  )
EXPORT_SYMBOL ( __kfifo_len_r  )
EXPORT_SYMBOL ( __kfifo_in_r  )
EXPORT_SYMBOL ( __kfifo_out_peek_r  )
EXPORT_SYMBOL ( __kfifo_out_r  )
EXPORT_SYMBOL ( __kfifo_skip_r  )
EXPORT_SYMBOL ( __kfifo_from_user_r  )
EXPORT_SYMBOL ( __kfifo_to_user_r  )
EXPORT_SYMBOL ( __kfifo_dma_in_prepare_r  )
EXPORT_SYMBOL ( __kfifo_dma_in_finish_r  )
EXPORT_SYMBOL ( __kfifo_dma_out_prepare_r  )
EXPORT_SYMBOL ( __kfifo_dma_out_finish_r  )