https://github.com/zfletch/linux-kernel-upcase
Upcase Linux kernel module
https://github.com/zfletch/linux-kernel-upcase
Last synced: about 1 year ago
JSON representation
Upcase Linux kernel module
- Host: GitHub
- URL: https://github.com/zfletch/linux-kernel-upcase
- Owner: zfletch
- License: gpl-2.0
- Created: 2014-06-10T22:31:55.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-06-12T22:40:22.000Z (about 12 years ago)
- Last Synced: 2025-02-16T20:20:56.705Z (over 1 year ago)
- Language: C
- Homepage:
- Size: 156 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Linux Upcase Kernel Module
==========================
Kernel module based on the tutorial
[Be a Kernel Hacker: Write Your First Linux Kernel Module](http://www.linuxvoice.com/be-a-kernel-hacker)
written by Valentine Sinitsyn.
This module creates a device called `/dev/upcase` which takes a string and converts
any lower case ASCII characters into upper case characters.
How to Compile
==============
- `git clone https://github.com/zfletch/linux-kernel-upcase`
- `cd linux-kernel-upcase/src`
- `make`
How to Insert the Module
=========================
- `sudo insmod upcase.ko`
- `dmesg | tail -n 1` should say `upcase device registered with buffer size 8192 bytes`
How to Test
===========
- `cd ../test`
- `gcc test.c`
- `sudo ./a.out hello` should print `HELLO` (note the sudo)
How to Reload the Module
========================
- `sudo rmmod upcase`
- Make some changes
- `sudo insmod upcase.ko`