Printing macros

modulename: rust_print.ko

configname: CONFIG_SAMPLE_RUST_PRINT

Linux Kernel Configuration
└─>Kernel hacking
└─>Sample kernel code
└─>Rust samples
└─>Printing macros
In linux kernel since version 6.2 (release Date: 2023-02-19)  
This option builds the Rust printing macros sample.

To compile this as a module, choose M here:
the module will be called rust_print.

If unsure, say N.

source code: