Skip to content

philipjar/registers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

registers

registers is a simple linux kernel module (LKM) which creates /proc/registers, a kernel proc file which holds the contents of eax, ebx, ecx, edx (x86 general purpose registers). Pretty useless as they change during execution but a good way to start LKM coding and try out some inline assembler.

Build

Build with:

make

Usage

Insert into kernel:

sudo insmod registers.ko

Then type dmesg or lsmod | grep registers to see if the module got loaded.

To view the register contents, use

cat /proc/registers

To unload the module, use:

sudo rmmod registers

About

A simple linux kernel module to show x86 general purpose register contents (eax, ebx, ecx, edx) as /proc file.

Resources

License

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors