I'm trying to invoke the getrusage()
system call from kernel space, but I don't know how.
I read about getting the kernel export (Can we call system call in kernel space?), but I don't know what that is or how to use it. Could someone show me how to call a system call from the kernel in C?
Edit: The old title was for a draft of a question, sorry!