[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Mon, 02 Feb 2015 09:32:42 +0100
From: Clemens Ladisch <clemens@...isch.de>
To: Toralf Förster <toralf.foerster@....de>,
Linux Kernel <linux-kernel@...r.kernel.org>
Subject: Re: file name changes between reboots : /sys/class/hwmon/hwmon[0->1]/temp1_input
Toralf Förster wrote:
> I'm wondering where to blame a nagging issue with these file names :
>
> # ls -l /sys/class/hwmon/hwmon?/temp?_input
> -r--r--r-- 1 root root 4096 Jan 30 13:57 /sys/class/hwmon/hwmon1/temp1_input
> -r--r--r-- 1 root root 4096 Jan 30 13:57 /sys/class/hwmon/hwmon2/temp1_input
> -r--r--r-- 1 root root 4096 Jan 30 13:57 /sys/class/hwmon/hwmon2/temp2_input
> -r--r--r-- 1 root root 4096 Jan 30 13:57 /sys/class/hwmon/hwmon2/temp3_input
>
> It appears sometimes after a reboot / new minor stable kernel that the first file name is found in hwmon0 instead of hwmon1.
Those numbers get assigned in the order in which the drivers get
attached, which is essentially random.
You have to use the permanent device path, which isn't as easy. Run
something like this to find it:
find /sys -name 'temp*_input'
Regards,
Clemens
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists