procfs's Introduction
Source file for the module: p4fs.c Run make to compile the module - The moudle is compiled agains the 4.0.9 kernel provided with the VM (VMWare Player + KVM) @ /home/user/Desktop/VM/linux-4.0.9/ Available test files: test.c (compile using gcc -o test test.c) test_long_running.c (to easily test killing the process by writing to its signal file) Notes: ==== 1. Become root (by running 'su' on target machine) to easily navigate/dump file contents/write signal. 2. remount.sh is added to easily remout the file system. 3. Testing: a. Copy the module, test executables and remount.sh to the target (I simply scp the files into the KVM) b. Run su to become root c. Create directory "/mnt/p4fsdisk" d. Go to directory where all the files are copied e. Run command "./test 3; ./remount.sh" test exe will create a number of processes (15 for input 3) in a hierarchy As a result of remounting, the files will be visible in the FS @ /mnt/p4fsdisk f. To test signal delivery, Run "./test_long_running &" PID will be printed on console Run the command find /mnt/p4fsdisk/ -name "<PID>.status" Use the directory info from the result of find command to write signal to the process' signal file. 4. Some screenshots are availabe in the archive to demonstrate.
procfs's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.