Linux Kernel
3.7.1
|
Data Fields | |
unsigned char * | buffer |
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 |
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'.
struct miscdevice misc |