diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2023-09-16 21:26:06 +0206 |
---|---|---|
committer | Petr Mladek <pmladek@suse.com> | 2023-09-18 17:03:45 +0200 |
commit | 06653d57ff283be627a2c769139d73ecc487810f (patch) | |
tree | 75bf0fc325ba6723dbc506c035b3cfd31624bc79 /security/selinux/hooks.c | |
parent | ad56ebd1d79b216dc147474fac89a11daf6b10df (diff) |
printk: nbcon: Add emit function and callback function for atomic printing
Implement an emit function for nbcon consoles to output printk
messages. It utilizes the lockless printk_get_next_message() and
console_prepend_dropped() functions to retrieve/build the output
message. The emit function includes the required safety points to
check for handover/takeover and calls a new write_atomic callback
of the console driver to output the message. It also includes
proper handling for updating the nbcon console sequence number.
A new nbcon_write_context struct is introduced. This is provided
to the write_atomic callback and includes only the information
necessary for performing atomic writes.
Co-developed-by: John Ogness <john.ogness@linutronix.de>
Signed-off-by: John Ogness <john.ogness@linutronix.de>
Signed-off-by: Thomas Gleixner (Intel) <tglx@linutronix.de>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20230916192007.608398-8-john.ogness@linutronix.de
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions