Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ring_sw.c File Reference
#include <linux/slab.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/device.h>
#include <linux/workqueue.h>
#include <linux/sched.h>
#include <linux/poll.h>
#include "ring_sw.h"
#include <linux/iio/trigger.h>

Go to the source code of this file.

Data Structures

struct  iio_sw_ring_buffer
 

Macros

#define iio_to_sw_ring(r)   container_of(r, struct iio_sw_ring_buffer, buf)
 

Functions

struct iio_buffer * iio_sw_rb_allocate (struct iio_dev *indio_dev)
 
 EXPORT_SYMBOL (iio_sw_rb_allocate)
 
void iio_sw_rb_free (struct iio_buffer *r)
 
 EXPORT_SYMBOL (iio_sw_rb_free)
 
 MODULE_DESCRIPTION ("Industrial I/O software ring buffer")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define iio_to_sw_ring (   r)    container_of(r, struct iio_sw_ring_buffer, buf)

Definition at line 42 of file ring_sw.c.

Function Documentation

EXPORT_SYMBOL ( iio_sw_rb_allocate  )
EXPORT_SYMBOL ( iio_sw_rb_free  )
struct iio_buffer* iio_sw_rb_allocate ( struct iio_dev indio_dev)
read

Definition at line 341 of file ring_sw.c.

void iio_sw_rb_free ( struct iio_buffer *  r)

Definition at line 359 of file ring_sw.c.

MODULE_DESCRIPTION ( "Industrial I/O software ring buffer )
MODULE_LICENSE ( "GPL"  )