On Fri, Nov 28, 2025 at 06:20:47AM -0800, Breno Leitao wrote: > Add a new write-only configfs attribute "send_msg" to netconsole targets > that allows sending arbitrary messages directly through netconsole. > > This feature enables users to send custom messages through netconsole > without having to go through the kernel logging infrastructure. Messages > can be sent by simply writing to: > /sys/kernel/config/netconsole/<target>/send_msg > > The implementation: > - Checks if the target is enabled before sending > - Verifies the network interface is running > - Handles both basic and extended message formats > - Fragments large messages when needed for basic targets > - Reuses existing send_msg_udp() and send_ext_msg_udp() functions > > Unfortunately this patch has two forward declaration, which is not > ideal, but, moving send_msg_udp() functions earlier would cause too many > changes, and this could be done in an idependent patch. > > Signed-off-by: Breno Leitao <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
