Data Fields | |
list_head | list |
rtnrt_lock_t | lock |
Before you access the list, call spin_lock() or spin_lock_irqsave() if you use the list in interrupt service routines. After accessing, call spin_unlock() or spin_unlock_irqrestore().
Using a read/write spinlock makes no sense in the most driver. Because the read access only takes place in the interrupt service routine.
Definition at line 113 of file most-common.h.
struct list_head spin_locked_list::list |
the list element
Definition at line 114 of file most-common.h.
Referenced by handle_interrupt(), and most_register_high_driver().
the spinlock to protect the list
Definition at line 115 of file most-common.h.
Referenced by handle_interrupt(), most_deregister_high_driver(), and most_register_high_driver().