natebragg / ipcdevice Goto Github PK
View Code? Open in Web Editor NEWA simple fifo-like linux kernel module, meant as a learning exercise.
License: GNU General Public License v2.0
A simple fifo-like linux kernel module, meant as a learning exercise.
License: GNU General Public License v2.0
The goal of this project is to: Implement a Linux kernel character device driver to pass messages between two processes. The message passing should be bi-directional. Also implement a series of ioctls that can transform the messages as they pass through the kernel: 1) An ioctl to ROT13 encode the message. 2) An ioctl to base64 encode the message. 3) An ioctl to reverse the message. ---- For the sake of disclosure, my references for this project include the following: http://www.freesoftwaremagazine.com/articles/drivers_linux http://www.xml.com/ldd/chapter/book/ch05.html drivers/char/generic_nvram.c, drivers/char/raw.c (and a few others) Documentation/ioctl/ioctl-number.txt http://www.makelinux.net/ldd3/chp-3-sect-4 http://lwn.net/Articles/119652/ ---- Before first use, add a udev rule - something like this: echo "KERNEL==\"ipcdevice\", MODE:=\"666\"" > /etc/udev/rules.d/99-ipcdevice.rules To use: make make demo_p_c make demo_duplex insmod ipcdevice.ko ./demo_p_c -f corpora/lipsum_biggest ./demo_duplex $(cat corpora/lipsum_small) # to test the IOCTLs, use any combination of -13, -r and -64: ./demo_p_c -13 -f corpora/lipsum_small rmmod ipcdevice
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.