Re: [PATCH 0/5] I8K driver facelift

From: Frank Sorenson (frank_at_tuxrocks.com)
Date: 03/15/05

  • Next message: Zwane Mwaikambo: "Re: [ACPI] Re: Fw: Anybody? 2.6.11 (stable and -rc) ACPI breaks USB"
    Date:	Tue, 15 Mar 2005 15:34:06 -0700
    To: linux-kernel@vger.kernel.org
    
    

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Valdis.Kletnieks@vt.edu wrote:
    > Well, (a) the next rev of the patch will hopefully provide more access to the
    > second thermal probe than just detecting its existence (it still doesn't do
    > the sysfs or whatever magic to make the actual value accessible), and (b) the
    > probe I *know* about is on the CPU, and runs over 40C easily as well (it's sitting
    > at 49C right now). Remember we're talking about a laptop here, there's not
    > a lot of room for a big heat sink in there.. ;)

    I've been trying to work out how to do this through dynamic sysfs
    attributes, but I have not found a way to create arbitrary attributes
    like this. It's not hard to define them at kernel compile time, but
    selecting the right number of sensors to compile in seems arbitrary. My
    Inspiron 9200 has 4 sensors, and who knows how many next year's model
    will have. It just doesn't seem like the Linux Kernel way of doing
    things to arbitrarily limit it like this.

    I've looked into several ways of creating sysfs attributes, but haven't
    found anything that works right/well. One of the most interesting was
    in this past LKML thread - http://lkml.org/lkml/2004/8/20/287 If I
    could replace the sysfs_attr_show() with my own, I believe that might
    work (the attribute is passed into the function, so the name should be
    available).

    It's odd that it's so easy to compile sysfs attributes into the kernel,
    but nobody seems to know how to generate them dynamically.

    Thoughts? Suggestions?

    Thanks,
    Frank
    - --
    Frank Sorenson - KD7TZK
    Systems Manager, Computer Science Department
    Brigham Young University
    frank@tuxrocks.com
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.6 (GNU/Linux)
    Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

    iD8DBQFCN2LeaI0dwg4A47wRAhWEAKC+CcoLmoyvS6RXy7n7gtTnKjPXsACgtCbE
    zofgMMEmc5mAzrQKdKwpIMQ=
    =xNOU
    -----END PGP SIGNATURE-----
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Zwane Mwaikambo: "Re: [ACPI] Re: Fw: Anybody? 2.6.11 (stable and -rc) ACPI breaks USB"

    Relevant Pages

    • Re: IDE-SCSI oops in 2.6.0-test11
      ... | different from the kernel you're running it on. ... Compile your own ... oops as a critical problem. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Feedback 2.6.0-test2
      ... to compile the new kernel but it did not function: ... feedback for your kernel. ... Otto-von-Guericke-Universitaet Magdeburg ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • [Answer] Re: Linux 2.4.24-pre1: Instant reboot
      ... > What CPU did you compile it for? ... iterating if the BIOS rebooted an old kernel; ... CPU choice makes no difference. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [patch] inotify: make user visible types portable
      ... Are you saying to use __u32 so user code can compile with these kernel ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6 - sysfs sensor nameing inconsistency
      ... > kernel interface). ... > is currently available is sysfs. ... Then look at the device directory for the i2c-0 adapter: ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)