ktype

2019-03-19  本文已影响0人  睦Q

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中的文件

};

上一篇 下一篇

猜你喜欢

热点阅读