Linux Kernel
3.7.1
|
#include <linux/spinlock.h>
#include <linux/lockdep.h>
#include <linux/percpu.h>
#include <linux/cpu.h>
#include <linux/notifier.h>
Go to the source code of this file.
Data Structures | |
struct | lglock |
Macros | |
#define | br_lock_init(name) lg_lock_init(name, #name) |
#define | br_read_lock(name) lg_local_lock(name) |
#define | br_read_unlock(name) lg_local_unlock(name) |
#define | br_write_lock(name) lg_global_lock(name) |
#define | br_write_unlock(name) lg_global_unlock(name) |
#define | DEFINE_BRLOCK(name) DEFINE_LGLOCK(name) |
#define | DEFINE_STATIC_BRLOCK(name) DEFINE_STATIC_LGLOCK(name) |
#define | LOCKDEP_INIT_MAP(a, b, c, d) |
#define | DEFINE_LGLOCK(name) |
#define | DEFINE_STATIC_LGLOCK(name) |
Functions | |
void | lg_lock_init (struct lglock *lg, char *name) |
void | lg_local_lock (struct lglock *lg) |
void | lg_local_unlock (struct lglock *lg) |
void | lg_local_lock_cpu (struct lglock *lg, int cpu) |
void | lg_local_unlock_cpu (struct lglock *lg, int cpu) |
void | lg_global_lock (struct lglock *lg) |
void | lg_global_unlock (struct lglock *lg) |
#define br_read_lock | ( | name | ) | lg_local_lock(name) |
#define br_read_unlock | ( | name | ) | lg_local_unlock(name) |
#define br_write_lock | ( | name | ) | lg_global_lock(name) |
#define br_write_unlock | ( | name | ) | lg_global_unlock(name) |
#define DEFINE_BRLOCK | ( | name | ) | DEFINE_LGLOCK(name) |
#define DEFINE_LGLOCK | ( | name | ) |
#define DEFINE_STATIC_BRLOCK | ( | name | ) | DEFINE_STATIC_LGLOCK(name) |
#define DEFINE_STATIC_LGLOCK | ( | name | ) |