Searched refs:nbcon_state (Results 1 - 2 of 2) sorted by relevance

/linux-master/kernel/printk/
H A Dnbcon.c14 * The state of the console is maintained in the "nbcon_state" atomic
80 * All operations on @console::nbcon_state are atomic cmpxchg based to
114 static inline void nbcon_state_set(struct console *con, struct nbcon_state *new)
116 atomic_set(&ACCESS_PRIVATE(con, nbcon_state), new->atom);
124 static inline void nbcon_state_read(struct console *con, struct nbcon_state *state)
126 state->atom = atomic_read(&ACCESS_PRIVATE(con, nbcon_state));
137 static inline bool nbcon_state_try_cmpxchg(struct console *con, struct nbcon_state *cur,
138 struct nbcon_state *new)
140 return atomic_try_cmpxchg(&ACCESS_PRIVATE(con, nbcon_state), &cur->atom, new->atom);
227 struct nbcon_state *cu
[all...]
/linux-master/include/linux/
H A Dconsole.h200 * struct nbcon_state - console state for nbcon consoles
211 * state variable @console::nbcon_state.
217 struct nbcon_state { struct
231 * The nbcon_state struct is used to easily create and interpret values that
232 * are stored in the @console::nbcon_state variable. Ensure this struct stays
236 static_assert(sizeof(struct nbcon_state) <= sizeof(int));
324 * @nbcon_state: State for nbcon consoles
350 atomic_t __private nbcon_state; member in struct:console

Completed in 126 milliseconds