spin_locked_list Struct Reference


Data Fields

list_head list
rtnrt_lock_t lock

Detailed Description

List with a lock operator. The list is protected by a normal spinlock.

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.


Field Documentation

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().

rtnrt_lock_t spin_locked_list::lock

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().


The documentation for this struct was generated from the following file:
Generated on Fri Mar 9 14:48:58 2007 for MOST Linux Drivers (Linux and RTAI) by  doxygen 1.5.0