Thread Synch AOSV 2020
1.2
LKM for exchanging messages between threads
|
Manage the message sub-system. More...
#include <types.h>
Data Fields | |
u_long | max_message_size |
u_long | max_storage_size |
u_long | curr_storage_size |
struct rw_semaphore | config_lock |
struct list_head | queue |
struct rw_semaphore | queue_lock |
atomic_long_t | message_delay |
struct list_head | delayed_queue |
struct semaphore | delayed_lock |
Manage the message sub-system.
The 'queue' represent the FIFO list of messages, while the other members are respectively the sub-system's size limits
struct rw_semaphore msg_manager_t::config_lock |
Semaphore for size parameters access
u_long msg_manager_t::curr_storage_size |
Stores the current group's messages size
struct semaphore msg_manager_t::delayed_lock |
Semaphore to manage access to the 'delayed_queue'
struct list_head msg_manager_t::delayed_queue |
The delayed messages queue
u_long msg_manager_t::max_message_size |
Group's max message size
u_long msg_manager_t::max_storage_size |
Max group storage size
atomic_long_t msg_manager_t::message_delay |
Specifies the current delay applied to the group
struct list_head msg_manager_t::queue |
The messages FIFO queue
struct rw_semaphore msg_manager_t::queue_lock |
FIFO queue semaphore