Is there an efficient way of finding the task_struct
for a specified pid, without iterating through the task_struct list?
相关问题
- how to get running process information in java?
- Stop child process when parent process stops
- Program doesn’t terminate when using processes
- Trying to run same command in command prompt not w
- Where is the standard kernel libraries to let kern
相关文章
- How do I get to see DbgPrint output from my kernel
- How to start a process in its own process group?
- Is it possible to run 16 bit code in an operating
- How to arrange a Makefile to compile a kernel modu
- How to redirect child process stdout/stderr to the
- File locked by which process?
- How can I read process output that has not been fl
- Tool to Debug Guest OS in Virtual Box
What's wrong with using one of the following?
If you want to find the
task_struct
from a module,find_task_by_vpid(pid_t nr)
etc. are not going to work since these functions are not exported.In a module, you can use the following function instead: