- Creates the proc file.
- Initializes the module.
- Removes the proc file.
- Cleans up the module.
- Reads the proc file and returns process information in the format: <PID_COMM> -> <CHILD_PID_CHILD_COMM>
yaml Copy code
- Writes to the proc file and logs the written data.
- Recursively appends task information to the buffer, including child processes.
- Checks for successful memory allocation and handles errors by returning
-ENOMEM.
- Checks for successful file operations and handles errors by returning
-EFAULT.
- Checks for successful process lookup and handles errors by returning
-ESRCH.
- Handles input and output redirection by opening the specified files and setting the appropriate file descriptors.
- Sets up pipes for command chaining and redirects input and output through the pipes.
- Uses
execvto execute external commands, passing command arguments and environment variables.
- Searches for matching commands or files when the Tab key is pressed and provides suggestions.
- Searches for commands in the PATH environment variable and files in the current directory.
- Displays the contents of a file in hexadecimal format, with optional grouping.
- Generates a process tree visualization using the
dottool from Graphviz, loading the kernel module if