Kernel module that displays the count or # of currently running processes.
Run the following commands:
make
sudo insmod proc_count.ko
Run the kernel module with the following command: cat /proc/count Expect an integer output that represents the # of running processes.
Remove the kernel module with the following command: sudo rmmod proc_count
Inside the code, clean up is performed using the function proc_remove() in the kernel module's exit function to clean up the directory that was created by proc_create_single upon init.
Kernel Release Version: 5.14.8-arch1-1