Arithmetic expression evaluator as pseudo device.
C
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
Makefile
README.md
buffer.c
buffer.h
main.c
malloc.c
malloc.h
parser.c
parser.h
parser.leg

README.md

KCalc: simple kernel calculator module

Usage

echo "1 + 1" > /dev/kcalc
cat /dev/kcalc

write the pseudo /dev/kcalc device with the expression, then you can get result simply with counterpart system call read.

TODO

  • Read/Write lock
  • Permission FIX
  • Blocked read
  • Larger tests