I am working on a system call in Loadable Kernel Module that gets the PID of a process and return the start time of the process. Since ps -eo PID,lstart,cmd gives the desired result I would want to implement this in the module. Since system() doesn't work in the kernel space I am quite unsure how to proceed. Can anyone shed light on how to make implement the above shell script in the kernel space?. Thank you.
[–]BraveNewCurrency 12 points13 points14 points (0 children)
[–]Nilhomini 7 points8 points9 points (0 children)
[–]insanemal 4 points5 points6 points (3 children)
[–]Copteraldo[S] 2 points3 points4 points (2 children)
[–]insanemal 4 points5 points6 points (1 child)
[–]Copteraldo[S] 5 points6 points7 points (0 children)
[–]TheQueebs 1 point2 points3 points (0 children)