device_create为何可以在/sys/class/具体类/属性文件?怎么实现的
答案:
版本3.6.9:
device_create ->
device_register ->
device_add ->
device_add_attrs ->
device_add_attributes(class->dev_attrs)
u-boot下载地址: ftp://ftp.denx.de/pub/u-boot/
linux内核下载地址: https://www.kernel.org/pub/linux/kernel
linux内核下载地址: https://www.kernel.org/pub/linux/kernel