Thread Synch AOSV 2020  1.2
LKM for exchanging messages between threads
Data Fields
msg_manager_t Struct Reference

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
 

Detailed Description

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

Field Documentation

◆ config_lock

struct rw_semaphore msg_manager_t::config_lock

Semaphore for size parameters access

◆ curr_storage_size

u_long msg_manager_t::curr_storage_size

Stores the current group's messages size

◆ delayed_lock

struct semaphore msg_manager_t::delayed_lock

Semaphore to manage access to the 'delayed_queue'

◆ delayed_queue

struct list_head msg_manager_t::delayed_queue

The delayed messages queue

◆ max_message_size

u_long msg_manager_t::max_message_size

Group's max message size

◆ max_storage_size

u_long msg_manager_t::max_storage_size

Max group storage size

◆ message_delay

atomic_long_t msg_manager_t::message_delay

Specifies the current delay applied to the group

◆ queue

struct list_head msg_manager_t::queue

The messages FIFO queue

◆ queue_lock

struct rw_semaphore msg_manager_t::queue_lock

FIFO queue semaphore


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