开发者

creating attributes in sysfs

开发者 https://www.devze.com 2023-01-20 13:04 出处:网络
I am just trying to add a simple at开发者_如何学Pythontribute to a device in the /sys filesystem.Seemed pretty straightforward but none of the helper methods mentioned here or here are exported from t

I am just trying to add a simple at开发者_如何学Pythontribute to a device in the /sys filesystem. Seemed pretty straightforward but none of the helper methods mentioned here or here are exported from the kernel so I can't use them from a module? I must be missing something, can anyone provide some insight?


none of the helper methods mentioned here or here are exported from the kernel

They certainly are, grepping two out of the tree:

fs/sysfs/file.c:EXPORT_SYMBOL_GPL(sysfs_create_file); lib/kobject.c:EXPORT_SYMBOL(kobject_add);

0

精彩评论

暂无评论...
验证码 换一张
取 消