Lines Matching +full:pmsg +full:- +full:size

1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * internal.h - printk internal definitions
20 (con->flags & CON_NBCON) ? "" : "legacy ", \
21 (con->flags & CON_BOOT) ? "boot" : "", \
22 con->name, con->index, ##__VA_ARGS__)
46 * the maximum size of a formatted record (i.e. with prefix added
51 /* the maximum size allowed to be reserved for a record */
130 if (use_atomic && !con->write_atomic) in console_is_usable()
140 if (!con->write) in console_is_usable()
145 * Console drivers may assume that per-cpu resources have been in console_is_usable()
156 * nbcon_kthread_wake - Wake up a console printing thread
172 rcuwait_wake_up(&con->rcuwait); /* LMM(nbcon_kthread_wake:A) */ in nbcon_kthread_wake()
186 * printk-safe must preserve the existing local IRQ guarantees.
216 * struct console_flush_type - Define available console flush methods
243 ft->nbcon_offload = true; in printk_get_console_flush_type()
245 ft->nbcon_atomic = true; in printk_get_console_flush_type()
251 ft->legacy_direct = true; in printk_get_console_flush_type()
253 ft->legacy_offload = true; in printk_get_console_flush_type()
259 ft->nbcon_atomic = true; in printk_get_console_flush_type()
264 ft->legacy_direct = true; in printk_get_console_flush_type()
266 ft->legacy_offload = true; in printk_get_console_flush_type()
276 ft->nbcon_atomic = true; in printk_get_console_flush_type()
287 ft->legacy_direct = true; in printk_get_console_flush_type()
294 if (ft->nbcon_atomic && !legacy_allow_panic_sync) in printk_get_console_flush_type()
295 ft->legacy_direct = false; in printk_get_console_flush_type()
308 * struct printk_buffers - Buffers to read/format/output printk messages.
310 * @scratchbuf: Used as temporary ringbuffer reading and string-print space.
318 * struct printk_message - Container for a prepared printk message.
320 * @outbuf_len: The length of prepared text in @pbufs->outbuf to output. This
323 * @seq: The sequence number of the record used for @pbufs->outbuf.
334 bool printk_get_next_message(struct printk_message *pmsg, u64 seq,
338 void console_prepend_dropped(struct printk_message *pmsg, unsigned long dropped);
339 void console_prepend_replay(struct printk_message *pmsg);