I do not understand why the kernel module cfg80211
is also listed by ps aux
as shown below:
$ ps aux | grep cfg80211
root 521 0.0 0.0 0 0 ? S< 16:09 0:00 [cfg80211]
I do not understand why the kernel module cfg80211
is also listed by ps aux
as shown below:
$ ps aux | grep cfg80211
root 521 0.0 0.0 0 0 ? S< 16:09 0:00 [cfg80211]
It is the standard behavior of
ps
to list kernel threads, as these too are processes--just a different kind of process, because they run in supervisor mode (which some people call "kernel mode").If you run
ps ax
(orps aux
) without piping its output togrep
, you'll see a whole bunch of kernel modules listed first (and then probably some others interspersed with user processes, if they were started later).For example, here's the first 10 lines of the current output of
ps ax
on my system:lsmod
will list loaded modules.ps aux
will list current processes, including kernel processes associated with modules. These are different things, however. For example, a loaded kernel module might have any number of kernel processes associated with it (zero or more).