Thread Synch AOSV 2020
1.2
LKM for exchanging messages between threads
|
Main device structure. More...
#include <main_device.h>
Data Fields | |
dev_t | dev |
struct cdev | cdev |
int | minor |
struct idr | group_map |
struct semaphore | sem |
Main device structure.
This structure is associated with the 'main_thread_synch' device. Apart from containing the device specification, the field 'group_map' employs Linux IDR in order to map group's 'group_data' structure to IDs
struct cdev t_main_sync::cdev |
Main Charcter device
struct idr t_main_sync::group_map |
IDR that maps group's ID to their structure
int t_main_sync::minor |
minor#
struct semaphore t_main_sync::sem |
Main device IDR semaphore