Skip to content

Commit faa0e3c

Browse files
committed
readme
1 parent 2bb3623 commit faa0e3c

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

README

Whitespace-only changes.

README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# ProcDetails
2+
The ProcDetails kernel module shows informations about `procfs` files.
3+
If a proc file is associated with a kernel module, the name of the module is shown. Otherwise, the module can only show that the file is created by the kernel.
4+
The following other informations are shown:
5+
6+
* `Mode`: The permissions of the file:
7+
* `Format`: Bitmask defined in `include/uapi/linux/stat.h`. Regular files are 100.
8+
* `Permissions`: Bitmask defined in `include/uapi/linux/stat.h`.
9+
* `Count`: Uses of the file
10+
* `In use`: Number of processes currently using the file.
11+
* `File Operations`: Shows the name of the file operations struct and all defined functions pointers.
12+
13+
14+
## Usage
15+
16+
sudo modprobe procdetails
17+
./procinfo /proc/cpuinfo
18+
------------------------------------------------------------
19+
/proc/cpuinfo
20+
------------------------------------------------------------
21+
> Module : Kernel
22+
> Mode
23+
Format : 100
24+
Permissions : 444
25+
> Count : 1
26+
> In use : 0
27+
> File Operations : Yes
28+
proc_cpuinfo_operations = {
29+
.open = cpuinfo_open,
30+
.read = seq_read,
31+
.release = seq_release,
32+
.llseek = seq_lseek,
33+
};
34+

0 commit comments

Comments
 (0)