Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thehxdev/todo.ko
Todo app as Linux kernel module :D
https://github.com/thehxdev/todo.ko
c driver kernel-module linux
Last synced: 25 days ago
JSON representation
Todo app as Linux kernel module :D
- Host: GitHub
- URL: https://github.com/thehxdev/todo.ko
- Owner: thehxdev
- License: gpl-3.0
- Created: 2024-09-11T09:54:53.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-09-12T18:31:07.000Z (about 2 months ago)
- Last Synced: 2024-09-29T11:45:29.033Z (about 1 month ago)
- Topics: c, driver, kernel-module, linux
- Language: C
- Homepage:
- Size: 24.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# todo.ko
Todo app as Linux kernel module!> [!WARNING]
> Since this is my first Linux kernel module, don't load the kernel module in your main operating system. Compile and load the module inside a Linux VM.## Build
Build the module with GNU make:
```bash
make
```## Use
Basic operations and instructions:### Load the module
```bash
sudo insmod todo.ko
```### Get all todos
```bash
cat /proc/todo
```### Add a new task
```bash
echo -n 'A: Read a new book' > /proc/todo
```### Delete a task
```bash
echo -n 'D: Read a new book' > /proc/todo
```### remove and unload the module
```bash
sudo rmmod todo
```## Command syntax
When you write to `/proc/todo`, the module parses your input. The first character MUST be an uppercase english ascii character.
At this point only `A` for add and `D` for delete are supported. The general syntax:
```txt
command := CMD_CHAR: TASK
```
A command contains a single uppercase character which specifies the operation, a colon right after command character and the rest is the task itself.