[lkml]   [2004]   [Apr]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [BK PATCH] add SMBIOS tables to sysfs
    On Tue, Apr 27, 2004 at 09:27:49PM -0500, Michael Brown wrote:
    > Andrew,
    > Below is a short patch to add SMBIOS data to sysfs. It it against latest
    > bitkeeper 2.6.6-rc (specifically, it applies after the efivars patch that
    > recently went in) but should apply to any recent kernel with only minor
    > reject on drivers/firmware/Makefile. A version for 2.4 (using /proc) will
    > follow tomorrow.

    Nice idea and patch. A few minor comments:

    > /sys/firmware/smbios/smbios/table_entry_point
    > /sys/firmware/smbios/smbios/table

    Why repeat the "smbios" directory? Is this a limitation in the sysfs
    interface right now? Or are you going to put more files in the main
    smbios directory some day?

    > + snprintf(sdev->, 7, "smbios" );

    Try using kobject_set_name() instead, it will do the proper thing if the
    string is bigger than the base field.


    greg k-h
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 14:02    [W:0.020 / U:16.424 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site