aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorJohn Ogness <[email protected]>2024-09-04 12:05:23 +0000
committerPetr Mladek <[email protected]>2024-09-04 13:56:32 +0000
commit6cb58cfebb293286f5ce8f6fba3e29122308e9e0 (patch)
tree042fc5992291126854af46fa9a5272e0dd3dcff8 /rust/helpers/helpers.c
parentprintk: Flush console on unregister_console() (diff)
downloadkernel-6cb58cfebb293286f5ce8f6fba3e29122308e9e0.tar.gz
kernel-6cb58cfebb293286f5ce8f6fba3e29122308e9e0.zip
printk: nbcon: Add context to usable() and emit()
The nbcon consoles will have two callbacks to be used for different contexts. In order to determine if an nbcon console is usable, console_is_usable() must know if it is a context that will need to use the optional write_atomic() callback. Also, nbcon_emit_next_record() must know which callback it needs to call. Add an extra parameter @use_atomic to console_is_usable() and nbcon_emit_next_record() to specify this. Since so far only the write_atomic() callback exists, @use_atomic is set to true for all call sites. For legacy consoles, @use_atomic is not used. Signed-off-by: John Ogness <[email protected]> Reviewed-by: Petr Mladek <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Petr Mladek <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions