Re: [PATCH] Export smbios strings associated with onboard devices to sysfs

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Greg KH
Date: Tuesday, March 2, 2010 - 11:28 am

On Tue, Mar 02, 2010 at 11:33:04AM -0600, Narendra K wrote:

#includes go at the top of the file.

Can you just create a pci-dmi.c and put this in that .c that way you
don't need any #ifdefs in a .c file?


Why are you creating your own attribute type?


Why are you creating a #define that is only used once?

What is wrong with a "normal" device attribute that you can not use it
here?


Put this in a new function and call it in a different file.

And how are you handling pci devices that are added after the pci
subsystem is initialized (think pci hotplug).

And where are you removing this sysfs file?

Why not put this in the pci_create_sysfs_dev_files function?

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] Export smbios strings associated with onboard ..., Greg KH, (Tue Mar 2, 11:28 am)