Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
logger_log Struct Reference

Data Fields

unsigned charbuffer
 
struct miscdevice misc
 
wait_queue_head_t wq
 
struct list_head readers
 
struct mutex mutex
 
size_t w_off
 
size_t head
 
size_t size
 
struct list_head logs
 

Detailed Description

struct logger_log - represents a specific log, such as 'main' or 'radio' : The actual ring buffer : The "misc" device representing the log : The wait queue for : This log's readers : The mutex that protects the : The current write head offset : The head, or location that readers start reading at. : The size of the log : The list of log channels

This structure lives from module insertion until module removal, so it does not need additional reference counting. The structure is protected by the mutex 'mutex'.

Definition at line 51 of file logger.c.

Field Documentation

unsigned char* buffer

Definition at line 52 of file logger.c.

Definition at line 58 of file logger.c.

Definition at line 60 of file logger.c.

Definition at line 53 of file logger.c.

Definition at line 56 of file logger.c.

struct list_head readers

Definition at line 55 of file logger.c.

size_t size

Definition at line 59 of file logger.c.

size_t w_off

Definition at line 57 of file logger.c.

Definition at line 54 of file logger.c.


The documentation for this struct was generated from the following file: