Ktypes have the simple job of describing default behavior for a family of kobjects.
struct kobj_type {
void (*release)(structkobject *);
const struct sysfs_ops*sysfs_ops; //sysfs中的操作
struct attribute**default_attrs; //对应sysfs中的文件
};
Ktypes have the simple job of describing default behavior for a family of kobjects.
struct kobj_type {
void (*release)(structkobject *);
const struct sysfs_ops*sysfs_ops; //sysfs中的操作
struct attribute**default_attrs; //对应sysfs中的文件
};
本文标题:ktype
本文链接:https://www.haomeiwen.com/subject/dpgwmqtx.html
网友评论