diff options
author | Thomas Gleixner <[email protected]> | 2023-09-16 21:26:06 +0206 |
---|---|---|
committer | Petr Mladek <[email protected]> | 2023-09-18 17:03:45 +0200 |
commit | 06653d57ff283be627a2c769139d73ecc487810f (patch) | |
tree | 75bf0fc325ba6723dbc506c035b3cfd31624bc79 /lib/test_fortify/write_overflow-strncpy-src.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 <[email protected]>
Signed-off-by: John Ogness <[email protected]>
Signed-off-by: Thomas Gleixner (Intel) <[email protected]>
Reviewed-by: Petr Mladek <[email protected]>
Signed-off-by: Petr Mladek <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions