Linux Kernel
3.7.1
|
Go to the source code of this file.
Data Structures | |
struct | seqlock_t |
struct | seqcount |
Macros | |
#define | __SEQLOCK_UNLOCKED(lockname) { 0, __SPIN_LOCK_UNLOCKED(lockname) } |
#define | seqlock_init(x) |
#define | DEFINE_SEQLOCK(x) seqlock_t x = __SEQLOCK_UNLOCKED(x) |
#define | SEQCNT_ZERO { 0 } |
#define | seqcount_init(x) do { *(x) = (seqcount_t) SEQCNT_ZERO; } while (0) |
#define | write_seqlock_irqsave(lock, flags) do { local_irq_save(flags); write_seqlock(lock); } while (0) |
#define | write_seqlock_irq(lock) do { local_irq_disable(); write_seqlock(lock); } while (0) |
#define | write_seqlock_bh(lock) do { local_bh_disable(); write_seqlock(lock); } while (0) |
#define | write_sequnlock_irqrestore(lock, flags) do { write_sequnlock(lock); local_irq_restore(flags); } while(0) |
#define | write_sequnlock_irq(lock) do { write_sequnlock(lock); local_irq_enable(); } while(0) |
#define | write_sequnlock_bh(lock) do { write_sequnlock(lock); local_bh_enable(); } while(0) |
#define | read_seqbegin_irqsave(lock, flags) ({ local_irq_save(flags); read_seqbegin(lock); }) |
#define | read_seqretry_irqrestore(lock, iv, flags) |
Typedefs | |
typedef struct seqcount | seqcount_t |
#define __SEQLOCK_UNLOCKED | ( | lockname | ) | { 0, __SPIN_LOCK_UNLOCKED(lockname) } |
#define DEFINE_SEQLOCK | ( | x | ) | seqlock_t x = __SEQLOCK_UNLOCKED(x) |
#define read_seqbegin_irqsave | ( | lock, | |
flags | |||
) | ({ local_irq_save(flags); read_seqbegin(lock); }) |
#define seqcount_init | ( | x | ) | do { *(x) = (seqcount_t) SEQCNT_ZERO; } while (0) |
#define seqlock_init | ( | x | ) |
#define write_seqlock_bh | ( | lock | ) | do { local_bh_disable(); write_seqlock(lock); } while (0) |
#define write_seqlock_irq | ( | lock | ) | do { local_irq_disable(); write_seqlock(lock); } while (0) |
#define write_seqlock_irqsave | ( | lock, | |
flags | |||
) | do { local_irq_save(flags); write_seqlock(lock); } while (0) |
#define write_sequnlock_bh | ( | lock | ) | do { write_sequnlock(lock); local_bh_enable(); } while(0) |
#define write_sequnlock_irq | ( | lock | ) | do { write_sequnlock(lock); local_irq_enable(); } while(0) |
#define write_sequnlock_irqrestore | ( | lock, | |
flags | |||
) | do { write_sequnlock(lock); local_irq_restore(flags); } while(0) |
typedef struct seqcount seqcount_t |