Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ring_buffer.c File Reference
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/hyperv.h>
#include "hyperv_vmbus.h"

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 

Functions

void hv_ringbuffer_get_debuginfo (struct hv_ring_buffer_info *ring_info, struct hv_ring_buffer_debug_info *debug_info)
 
u32 hv_get_ringbuffer_interrupt_mask (struct hv_ring_buffer_info *rbi)
 
int hv_ringbuffer_init (struct hv_ring_buffer_info *ring_info, void *buffer, u32 buflen)
 
void hv_ringbuffer_cleanup (struct hv_ring_buffer_info *ring_info)
 
int hv_ringbuffer_write (struct hv_ring_buffer_info *outring_info, struct scatterlist *sglist, u32 sgcount)
 
int hv_ringbuffer_peek (struct hv_ring_buffer_info *Inring_info, void *Buffer, u32 buflen)
 
int hv_ringbuffer_read (struct hv_ring_buffer_info *inring_info, void *buffer, u32 buflen, u32 offset)
 

Macro Definition Documentation

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 24 of file ring_buffer.c.

Function Documentation

u32 hv_get_ringbuffer_interrupt_mask ( struct hv_ring_buffer_info *  rbi)

Definition at line 250 of file ring_buffer.c.

void hv_ringbuffer_cleanup ( struct hv_ring_buffer_info *  ring_info)

Definition at line 289 of file ring_buffer.c.

void hv_ringbuffer_get_debuginfo ( struct hv_ring_buffer_info *  ring_info,
struct hv_ring_buffer_debug_info *  debug_info 
)

Definition at line 220 of file ring_buffer.c.

int hv_ringbuffer_init ( struct hv_ring_buffer_info *  ring_info,
void buffer,
u32  buflen 
)

Definition at line 262 of file ring_buffer.c.

int hv_ringbuffer_peek ( struct hv_ring_buffer_info *  Inring_info,
void Buffer,
u32  buflen 
)

Definition at line 373 of file ring_buffer.c.

int hv_ringbuffer_read ( struct hv_ring_buffer_info *  inring_info,
void buffer,
u32  buflen,
u32  offset 
)

Definition at line 416 of file ring_buffer.c.

int hv_ringbuffer_write ( struct hv_ring_buffer_info *  outring_info,
struct scatterlist sglist,
u32  sgcount 
)

Definition at line 300 of file ring_buffer.c.