[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Package for development of out-of-tree kernel modules written in Rust



On 02/04/25 23:33, NoisyCoil wrote:
I am in fact able to build the reference out-of-tree kernel module without libmacros.so.

I take that back, I had deleted libmacros.so from the wrong kernel package version. Not only one of the proc macros defined in the macros crate is module!(), which is used to declare kernel modules, but without libmacros.so the kernel crate is not even found:

error[E0463]: can't find crate for `kernel`
 --> /home/noisycoil/Tmp/rust-out-of-tree-module/rust_out_of_tree.rs:5:5
  |
5 | use kernel::prelude::*;
  |     ^^^^^^ can't find crate


Reply to: