I was trying to look into the device temperature. What I found has puzzled me. When I go to /sys/class/thermal/thermal_zone1/subsystem
it has endless loop.
It would be clear from the output of pwd
as follows:
/sys/class/thermal/thermal_zone1/subsystem/thermal_zone1/subsystem/thermal_zone1/subsystem/thermal_zone1/subsystem/thermal_zone1/subsystem/thermal_zone1
Output of ls
in pwd:
/sys/class/thermal/thermal_zone1/subsystem/thermal_zone1/subsystem/thermal_zone1/subsystem/thermal_zone1/subsystem/thermal_zone1/subsystem/thermal_zone1$
ls
available_policies k_d k_po mode passive power subsystem temp uevent
integral_cutoff
And it does not end here, I can keep doing cd
into subsystem
folder and so on and so forth.
So, my question is why it has so many subsystem
inside thermal_zone1
? Is it normal?
Device info:
$uname -a
Linux chips 4.4.154-1124-rockchip-ayufan-*** #1 SMP Mon Oct 22 20:59:41 UTC 2018 aarch64 aarch64 aarch64 GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Release: 18.04
Codename: bionic
I have seen this answer but I do not think it addresses my question.