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

Contains the various flags that represent the status of the module. More...

#include <types.h>

Data Fields

unsigned int initialized:1
 
unsigned int thread_barrier_loaded:1
 
unsigned int wake_up_flag:1
 
unsigned int sysfs_loaded:1
 
unsigned int strict_mode:1
 
unsigned int garbage_collector_disabled:1
 
unsigned int gc_include_struct:1
 

Detailed Description

Contains the various flags that represent the status of the module.

Those flags are useful since it indicates if a module was correctly initialized, in this way when the module must be unloaded, no deallocation is performed on modules that failed.

Field Documentation

◆ garbage_collector_disabled

unsigned int group_flags_t::garbage_collector_disabled

1 if the garbage collector is disabled, zero otherwise

◆ gc_include_struct

unsigned int group_flags_t::gc_include_struct

1 if the structure related to a message should be included in the size count

◆ initialized

unsigned int group_flags_t::initialized

Set to 1 when the device driver is fully loaded

◆ sysfs_loaded

unsigned int group_flags_t::sysfs_loaded

1 if the sysfs submodule is initialized correctly

◆ thread_barrier_loaded

unsigned int group_flags_t::thread_barrier_loaded

1 if the 'thread_barrier' submodule is initialized

◆ wake_up_flag

unsigned int group_flags_t::wake_up_flag

Flag used to wake-up all thread which slept on barrier


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