ktype

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)