Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1675699

Re: userspace regression with hwmon

From Jean Delvare <jdelvare@suse.de>
Newsgroups linux.kernel
Subject Re: userspace regression with hwmon
Date 2017-06-27 15:40 +0200
Message-ID <tWYSK-18m-7@gated-at.bofh.it> (permalink)
References <tWDlg-3xd-13@gated-at.bofh.it> <tWFGp-56V-1@gated-at.bofh.it> <tWXMZ-pJ-13@gated-at.bofh.it> <tWYg2-C4-15@gated-at.bofh.it>
Organization SUSE Linux

Show all headers | View raw


On Tue, 27 Jun 2017 05:52:39 -0700, Guenter Roeck wrote:
> On 06/27/2017 05:23 AM, Sudip Mukherjee wrote:
> > Well, using the raw platform device path was a bad design decision.
> > But I still see a difference. In v3.8 all the temp* nodes were in
> > /sys/class/hwmon/hwmon0/device/ but in v4.4 I can see that they are in
> > /sys/class/hwmon/hwmon0/. So if we do modify the code, then we still
> > need to have two versions of userspace code based on the kernel.
> 
> Your code should check for the 'name' attribute in both locations.

... as libsensors does. If you just do what libsensors does, you'll be
on the safe side.

-- 
Jean Delvare
SUSE L3 Support

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

userspace regression with hwmon Sudip Mukherjee <sudipm.mukherjee@gmail.com> - 2017-06-26 16:40 +0200
  Re: userspace regression with hwmon Guenter Roeck <linux@roeck-us.net> - 2017-06-26 19:10 +0200
    Re: userspace regression with hwmon Sudip Mukherjee <sudipm.mukherjee@gmail.com> - 2017-06-27 14:30 +0200
      Re: userspace regression with hwmon Guenter Roeck <linux@roeck-us.net> - 2017-06-27 15:00 +0200
        Re: userspace regression with hwmon Jean Delvare <jdelvare@suse.de> - 2017-06-27 15:40 +0200

csiph-web