Skip to content

Instantly share code, notes, and snippets.

@loneicewolf
Last active February 3, 2024 19:17
Show Gist options
  • Save loneicewolf/226e3e20e6041d12a63a5e833ebb0503 to your computer and use it in GitHub Desktop.
Save loneicewolf/226e3e20e6041d12a63a5e833ebb0503 to your computer and use it in GitHub Desktop.
LKM Loadable Kernel Modules in Linux

LKM - Loadable Kernel Modules in Linux

Some code taken from other sources(others repo's, gist's), sites, courses, and so on. And some code is made and/or modified by me; :warning: note - any of this is not perfect; I make this gist to some friends which asked me for some beginner lkm dev;

@loneicewolf
Copy link
Author

loneicewolf commented Feb 1, 2023

Expand todo
  • add dropdowns
  • add footnotes
  • add "copy contents" button (?)
  • (reliable) related links
  • scripts (to automate, build, load, unload, configure, template, structure, searchers)
  • pitfalls
  • notation (symbols,keywords, "emojis", colors, ..., . )
  • clean up.

@loneicewolf
Copy link
Author

loneicewolf commented Feb 1, 2023

Expand todo: pitfalls
  • includes
  • using/calling wrong function/file
  • reboot required/snapshot/checkpoint restore (if crashy/unstable)
  • Null's, newlines, \*, not =0 when one should do;
  • order (in some cases) of functions (note - mostly in normal C usermode programming but)

@loneicewolf
Copy link
Author

Expand todo: misc
  • easy future maintainable (e.g when done with a project, generalize it, simplify it, apply best practices, etc. Document. Include "supported versions", and so on.)

  • Naming. Name things well.

  • Know when to use (and change to the better)

  • //

  • or

  • /**/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment