Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/priyanshscpp/ece3406-linux-kernel-modules-os
Linux kernel modules to learn the basic concepts of kernel programming.
https://github.com/priyanshscpp/ece3406-linux-kernel-modules-os
c drivers kernel operating-system
Last synced: about 9 hours ago
JSON representation
Linux kernel modules to learn the basic concepts of kernel programming.
- Host: GitHub
- URL: https://github.com/priyanshscpp/ece3406-linux-kernel-modules-os
- Owner: priyanshscpp
- Created: 2024-08-13T09:40:06.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-11-09T12:59:31.000Z (2 months ago)
- Last Synced: 2024-12-30T15:20:44.204Z (10 days ago)
- Topics: c, drivers, kernel, operating-system
- Language: C
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Linux Kernel Modules
[![HitCount](http://hits.dwyl.com/Arna-Maity/Linux-Kernel-Modules.svg)](http://hits.dwyl.com/Arna-Maity/Linux-Kernel-Modules)
This repo contains some very basic linux kernel modules to illustrate the basic concepts of kernel programming.
Reference: [The LKM programming Guide](https://www.tldp.org/LDP/lkmpg/2.6/lkmpg.pdf).
1. Basic Hello World Module.
2. Usage of __init & __exit macros.
3. Module Licensing and Documentation.
4. Module Parameters.
5. Simple Character Device Driver.
6. /proc File System Module.
7. /proc using Standard File System.
8. Managing procfs with seq_file.
9. IOCTL (Input/Output ConTroL).### Tracing syscalls while executing a program:
`strace `### Some useful StackOverflow Threads:
1. [proc_root](https://stackoverflow.com/questions/2531730/linux-kernel-module-creating-proc-file-proc-root-undeclared-error)
2. [Using newer Kernel APIs](https://devarea.com/linux-kernel-development-creating-a-proc-file-and-interfacing-with-user-space/#.XtSHRhbhWUk)
3. [create_proc_entry() alternative](https://stackoverflow.com/questions/18565381/what-is-alternative-of-create-proc-entry)### Courses on Basic Linux Kernel Development
1. [A Beginners Guide to Linux Kernel Development](https://training.linuxfoundation.org/training/a-beginners-guide-to-linux-kernel-development-lfd103/) (Linux Foundation)