Searched refs:nbcon_state (Results 1 – 3 of 3) sorted by relevance
| /linux/kernel/printk/ |
| H A D | nbcon.c | 133 static inline void nbcon_state_set(struct console *con, struct nbcon_state *new) in nbcon_state_set() 135 atomic_set(&ACCESS_PRIVATE(con, nbcon_state), new->atom); in nbcon_state_set() 143 static inline void nbcon_state_read(struct console *con, struct nbcon_state *state) in nbcon_state_read() 145 state->atom = atomic_read(&ACCESS_PRIVATE(con, nbcon_state)); in nbcon_state_read() 156 static inline bool nbcon_state_try_cmpxchg(struct console *con, struct nbcon_state *cur, in nbcon_state_try_cmpxchg() 157 struct nbcon_state *new) in nbcon_state_try_cmpxchg() 159 return atomic_try_cmpxchg(&ACCESS_PRIVATE(con, nbcon_state), &cur->atom, new->atom); in nbcon_state_try_cmpxchg() 244 struct nbcon_state *cur, bool is_reacquire) in nbcon_context_try_acquire_direct() 248 struct nbcon_state new; in nbcon_context_try_acquire_direct() 293 static bool nbcon_waiter_matches(struct nbcon_state *cur, int expected_prio) in nbcon_waiter_matches() [all …]
|
| /linux/include/linux/ |
| H A D | console.h | 215 struct nbcon_state { struct 234 static_assert(sizeof(struct nbcon_state) <= sizeof(int)); 464 atomic_t __private nbcon_state; member
|
| /linux/Documentation/driver-api/tty/ |
| H A D | console.rst | 19 :identifiers: nbcon_state nbcon_prio nbcon_context nbcon_write_context
|