Task owner pid in a Linux kernel module when executed in swapper -
given task instance having pid 0 , comm "swapper/0", how owner pid ?
==edit==
this happens using netfilter hooks.
in operating scheme unix, every process except process 0 (the swapper) created when process executes fork() scheme call. process invoked fork parent process , newly-created process kid process. every process (except process 0) has 1 parent process, can have many kid processes.
the operating scheme kernel identifies each process process identifier. process 0 special process created when scheme boots; after forking kid process (process 1), process 0 becomes swapper process (sometimes known "idle task"). process 1, known init, ancestor of every other process in system.
linux module kernel task pid
No comments:
Post a Comment