Home
last modified time | relevance | path

Searched refs:ld_semaphore (Results 1 – 3 of 3) sorted by relevance

/Linux-v4.19/include/linux/
Dtty_ldisc.h127 struct ld_semaphore { struct
138 extern void __init_ldsem(struct ld_semaphore *sem, const char *name, argument
149 extern int ldsem_down_read(struct ld_semaphore *sem, long timeout);
150 extern int ldsem_down_read_trylock(struct ld_semaphore *sem);
151 extern int ldsem_down_write(struct ld_semaphore *sem, long timeout);
152 extern int ldsem_down_write_trylock(struct ld_semaphore *sem);
153 extern void ldsem_up_read(struct ld_semaphore *sem);
154 extern void ldsem_up_write(struct ld_semaphore *sem);
157 extern int ldsem_down_read_nested(struct ld_semaphore *sem, int subclass,
159 extern int ldsem_down_write_nested(struct ld_semaphore *sem, int subclass,
Dtty.h292 struct ld_semaphore ldisc_sem;
/Linux-v4.19/drivers/tty/
Dtty_ldsem.c80 void __init_ldsem(struct ld_semaphore *sem, const char *name, in __init_ldsem()
97 static void __ldsem_wake_readers(struct ld_semaphore *sem) in __ldsem_wake_readers()
128 static inline int writer_trylock(struct ld_semaphore *sem) in writer_trylock()
143 static void __ldsem_wake_writer(struct ld_semaphore *sem) in __ldsem_wake_writer()
159 static void __ldsem_wake(struct ld_semaphore *sem) in __ldsem_wake()
167 static void ldsem_wake(struct ld_semaphore *sem) in ldsem_wake()
179 static struct ld_semaphore __sched *
180 down_read_failed(struct ld_semaphore *sem, long count, long timeout) in down_read_failed()
252 static struct ld_semaphore __sched *
253 down_write_failed(struct ld_semaphore *sem, long count, long timeout) in down_write_failed()
[all …]