linux-kernel-module-cheat icon indicating copy to clipboard operation
linux-kernel-module-cheat copied to clipboard

Misinterpretation of dashes used as separators for init arguments

Open iwereth opened this issue 3 years ago • 2 comments

I was going through the guides since I am quite a newbie to whole Linux ecosystem (thank you so much!) and I found that there is a misinterpretation of dash separators for kernel boot parameters, which was probably caused by the formatting bug the official kernel documentation had torvalds/linux@62ee81b5681daa781f5e800346ae8654b3e5a864

I tried to make some fixes to the README.adoc to the main page. Moreover, some of the section of guide may have the content rendered as incorrectly making some conclusion about how parameters are parsed, for example the one where you mention about how a.b was parsed

iwereth avatar Oct 19 '22 09:10 iwereth

Oh, God, I remember being so confused by this... thanks :-) Unfortunately it will also need a few more fixes in other parts of LKMC as I relied on this buggy behavior in some other places too, I'll try to make a more complete fix later, some points:

  • init arguments section dies, gotta check if other things are affected
  • usages of lkmc_home
  • usages of lkmc_eval
  • usages of kernel_cli_after_dash and things that would go into it

cirosantilli avatar Oct 20 '22 06:10 cirosantilli

哎 一看就是sb台独

hitoriCai avatar Jan 12 '24 08:01 hitoriCai