Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
ivtv-queue.c File Reference
#include "ivtv-driver.h"
#include "ivtv-queue.h"

Go to the source code of this file.

Functions

int ivtv_buf_copy_from_user (struct ivtv_stream *s, struct ivtv_buffer *buf, const char __user *src, int copybytes)
 
void ivtv_buf_swap (struct ivtv_buffer *buf)
 
void ivtv_queue_init (struct ivtv_queue *q)
 
void ivtv_enqueue (struct ivtv_stream *s, struct ivtv_buffer *buf, struct ivtv_queue *q)
 
struct ivtv_bufferivtv_dequeue (struct ivtv_stream *s, struct ivtv_queue *q)
 
int ivtv_queue_move (struct ivtv_stream *s, struct ivtv_queue *from, struct ivtv_queue *steal, struct ivtv_queue *to, int needed_bytes)
 
void ivtv_flush_queues (struct ivtv_stream *s)
 
int ivtv_stream_alloc (struct ivtv_stream *s)
 
void ivtv_stream_free (struct ivtv_stream *s)
 

Function Documentation

int ivtv_buf_copy_from_user ( struct ivtv_stream s,
struct ivtv_buffer buf,
const char __user src,
int  copybytes 
)

Definition at line 25 of file ivtv-queue.c.

void ivtv_buf_swap ( struct ivtv_buffer buf)

Definition at line 36 of file ivtv-queue.c.

struct ivtv_buffer* ivtv_dequeue ( struct ivtv_stream s,
struct ivtv_queue q 
)
read

Definition at line 71 of file ivtv-queue.c.

void ivtv_enqueue ( struct ivtv_stream s,
struct ivtv_buffer buf,
struct ivtv_queue q 
)

Definition at line 52 of file ivtv-queue.c.

void ivtv_flush_queues ( struct ivtv_stream s)

Definition at line 185 of file ivtv-queue.c.

void ivtv_queue_init ( struct ivtv_queue q)

Definition at line 44 of file ivtv-queue.c.

int ivtv_queue_move ( struct ivtv_stream s,
struct ivtv_queue from,
struct ivtv_queue steal,
struct ivtv_queue to,
int  needed_bytes 
)

Definition at line 122 of file ivtv-queue.c.

int ivtv_stream_alloc ( struct ivtv_stream s)

Definition at line 193 of file ivtv-queue.c.

void ivtv_stream_free ( struct ivtv_stream s)

Definition at line 265 of file ivtv-queue.c.