Skip to content

A collection of example Linux kernel modules, demonstrating basic structures and functionalities across different kernel versions. This repository is a learning resource for those looking to understand kernel module programming and Linux Kernel nuances.

License

Notifications You must be signed in to change notification settings

ANSANJAY/ModuleSupportMultipleKernel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ModuleSupportMultipleKernel

Linux Kernel Module Examples 🐧🔧

This repository contains example Linux kernel modules, providing insights into basic structures and functionalities across different kernel versions. It serves as a learning resource for individuals exploring kernel module programming and the nuances of the Linux kernel.

Structure 🗂️

The repository is organized into different folders, each corresponding to a specific Linux version or functionality:

  • 0_Linux_Version/
  • 1_Linux_Version/
  • 2_UTS_release/
  • 3_multiple_versions/

Each folder contains:

  • hello.c: The C source file for the kernel module.
  • Makefile: The file to assist in compiling the kernel module.
  • readme.md: Instructions and information related to the specific example.

How to Use 🛠️

Navigate to any version-specific folder and follow the instructions in the readme.md file to compile and load the kernel module.

Example:

$ cd 0_Linux_Version
$ make
$ sudo insmod hello.ko

License 📄

This project is licensed under the terms of the included LICENSE file.

Contribution 🤝

Contributions, issues, and feature requests are welcome! Feel free to check

Note: 🚨

Please ensure you understand the risks involved with kernel programming, and use a safe environment such as a virtual machine.

Acknowledgments 🙏

  • The Linux kernel documentation
  • The open-source community for valuable insights and information.

Happy Coding! 🎉

About

A collection of example Linux kernel modules, demonstrating basic structures and functionalities across different kernel versions. This repository is a learning resource for those looking to understand kernel module programming and Linux Kernel nuances.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published