Lines Matching refs:lglock
36 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);
56 void lg_local_lock(struct lglock *lg);
57 void lg_local_unlock(struct lglock *lg);
58 void lg_local_lock_cpu(struct lglock *lg, int cpu);
59 void lg_local_unlock_cpu(struct lglock *lg, int cpu);
61 void lg_double_lock(struct lglock *lg, int cpu1, int cpu2);
62 void lg_double_unlock(struct lglock *lg, int cpu1, int cpu2);
64 void lg_global_lock(struct lglock *lg);
65 void lg_global_unlock(struct lglock *lg);
69 #define lglock spinlock macro