Thread Synch AOSV 2020
1.2
LKM for exchanging messages between threads
|
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 |
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.
unsigned int group_flags_t::garbage_collector_disabled |
1 if the garbage collector is disabled, zero otherwise
unsigned int group_flags_t::gc_include_struct |
1 if the structure related to a message should be included in the size count
unsigned int group_flags_t::initialized |
Set to 1 when the device driver is fully loaded
unsigned int group_flags_t::sysfs_loaded |
1 if the sysfs submodule is initialized correctly
unsigned int group_flags_t::thread_barrier_loaded |
1 if the 'thread_barrier' submodule is initialized
unsigned int group_flags_t::wake_up_flag |
Flag used to wake-up all thread which slept on barrier