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);
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);
64 #define lglock spinlock macro