[RFC PATCH 2.6.12-rc3] dynamic driver sysfs callbacks and RFC on bmcsensor rewrite

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Yani,

On Friday 06 May 2005 01:40, Yani Ioannou wrote:
> We would probably want to define another DEVICE_ATTRIBUTE like macro
> or add a void * parameter to the DEVICE_ATTRIBUTE macro. Any opinions
> on which way to go? This might be done for the other *_ATTRIBUTE
> macros too.
> 

No, I don't think so. Again, macros are normally used to initialize
statically allocated attributes, exposing void * pointer does not do
them any good. It can only lead to bugs when driver writer misses the
fact that pointer is shared between all instances of attribute.

-- 
Dmitry



[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux