On Wed, May 08, 2024 at 05:44:03PM +0000, Shiju Jose wrote:
> I mean scrub subsystem module is not loaded and initialzed until
> a dependent device module is loaded and a device does not get
> registered with the scrub subsystem on a machine which doesn't have
> the corresponding scrub features.
Stop this rambling blabla please. This should *not* happen:
# insmod ./memory_scrub.ko
# echo $?
0
# lsmod
Module Size Used by
memory_scrub 12288 0
This is on a silly guest which has none of those dependent devices crap.
Your scrub module should load only on a machine which has the hardware
- not just for fun and on anything.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette