Data Fields | |
cdev | cdev |
most_dev * | most_dev |
dma_buffer | hw_receive_buf |
dma_buffer | hw_transmit_buf |
rx_buffer * | sw_receive_buf |
tx_buffer * | sw_transmit_buf |
list_head | file_list |
atomic_t | open_count |
atomic_t | receiver_count |
atomic_t | transmitter_count |
wait_queue_head_t | rx_queue |
wait_queue_head_t | tx_queue |
rw_semaphore | config_lock_rx |
rw_semaphore | config_lock_tx |
unsigned char | rx_current_page |
unsigned char | tx_current_page |
Definition at line 128 of file most-sync.h.
struct cdev most_sync_dev::cdev |
the character device of the Linux kernel
Definition at line 129 of file most-sync.h.
Referenced by most_sync_probe(), and most_sync_remove().
struct most_dev* most_sync_dev::most_dev |
the corresponding most_dev structure
Definition at line 131 of file most-sync.h.
Referenced by most_sync_do_open(), most_sync_do_release(), most_sync_int_handler(), and most_sync_probe().
the receive buffer
Definition at line 133 of file most-sync.h.
Referenced by most_sync_int_handler().
the transmit buffer
Definition at line 134 of file most-sync.h.
Referenced by most_sync_int_handler().
the receive ring buffer
Definition at line 135 of file most-sync.h.
Referenced by most_sync_int_handler(), and most_sync_read().
the transmit ring buffer
Definition at line 136 of file most-sync.h.
Referenced by most_sync_int_handler(), and most_sync_write().
struct list_head most_sync_dev::file_list |
list of all opened files in a device
Definition at line 137 of file most-sync.h.
Referenced by most_sync_do_open(), and most_sync_probe().
atomic_t most_sync_dev::open_count |
open counter
Definition at line 139 of file most-sync.h.
Referenced by most_sync_do_open(), most_sync_do_release(), and most_sync_probe().
atomic_t most_sync_dev::receiver_count |
count of running receivers
Definition at line 140 of file most-sync.h.
Referenced by most_sync_do_release(), and most_sync_probe().
atomic_t most_sync_dev::transmitter_count |
count of running transmittes
Definition at line 141 of file most-sync.h.
Referenced by most_sync_do_release(), and most_sync_probe().
wait_queue_head_t most_sync_dev::rx_queue |
wait queue for sleeping processes that want to read data but cannot because there are no data to read
Definition at line 142 of file most-sync.h.
Referenced by most_sync_int_handler(), most_sync_probe(), and most_sync_read().
wait_queue_head_t most_sync_dev::tx_queue |
wait queue for sleeping processes that want to write data but cannot write because the queue is full
Definition at line 145 of file most-sync.h.
Referenced by most_sync_int_handler(), most_sync_probe(), and most_sync_write().
struct rw_semaphore most_sync_dev::config_lock_rx |
semaphore to model the fact that a device can only be set up if no other file is in a read method
Definition at line 148 of file most-sync.h.
Referenced by most_sync_do_release(), most_sync_probe(), most_sync_read(), and most_sync_setup_rx().
struct rw_semaphore most_sync_dev::config_lock_tx |
semaphore to model the fact that a device can only be set up if no other file is in a write method
Definition at line 151 of file most-sync.h.
Referenced by most_sync_do_release(), most_sync_probe(), most_sync_setup_tx(), and most_sync_write().
unsigned char most_sync_dev::rx_current_page |
current page to keep track of pages and be able to print a warning if page is wrong (RX)
Definition at line 154 of file most-sync.h.
Referenced by most_sync_int_handler().
unsigned char most_sync_dev::tx_current_page |
current page to keep track of pages and be able to print a warning if page is wrong (TX)
Definition at line 157 of file most-sync.h.
Referenced by most_sync_int_handler().