Home
last modified time | relevance | path

Searched refs:lglock (Results 1 – 4 of 4) sorted by relevance

/linux-4.1.27/include/linux/
Dlglock.h36 struct lglock { struct
47 struct lglock name = { .lock = &name ## _lock } argument
52 static struct lglock name = { .lock = &name ## _lock }
54 void lg_lock_init(struct lglock *lg, char *name);
55 void lg_local_lock(struct lglock *lg);
56 void lg_local_unlock(struct lglock *lg);
57 void lg_local_lock_cpu(struct lglock *lg, int cpu);
58 void lg_local_unlock_cpu(struct lglock *lg, int cpu);
59 void lg_global_lock(struct lglock *lg);
60 void lg_global_unlock(struct lglock *lg);
[all …]
/linux-4.1.27/kernel/locking/
Dlglock.c13 void lg_lock_init(struct lglock *lg, char *name) in lg_lock_init()
19 void lg_local_lock(struct lglock *lg) in lg_local_lock()
30 void lg_local_unlock(struct lglock *lg) in lg_local_unlock()
41 void lg_local_lock_cpu(struct lglock *lg, int cpu) in lg_local_lock_cpu()
52 void lg_local_unlock_cpu(struct lglock *lg, int cpu) in lg_local_unlock_cpu()
63 void lg_global_lock(struct lglock *lg) in lg_global_lock()
77 void lg_global_unlock(struct lglock *lg) in lg_global_unlock()
DMakefile18 obj-$(CONFIG_SMP) += lglock.o
/linux-4.1.27/Documentation/locking/
Dlglock.txt1 lglock - local/global locks for mostly local access patterns
6 Location: kernel/locking/lglock.c
7 include/linux/lglock.h
18 lglock will be used where the majority of accesses are cpu local
71 The initial lglock implementation from Nick Piggin used some complex
72 macros to generate the lglock/brlock in lglock.h - they were later
83 #include <linux/lglock.h>
104 lg_local_lock(*lglock);
106 lg_local_unlock(*lglock);
108 lg_local_lock_cpu(*lglock, cpu);
[all …]