最終更新:2015-10-26 (月) 16:23:00 (3099d)
kobject
Top / kobject
概要
- sysfsのディレクトリファイルはkobjectというデータ構造で表現され、各kobjectに属性 (attribute)情報がぶら下がり、これがファイルという形でユーザに提供されている
- http://dev.ariel-networks.com/Members/ohyama/i-o-30b930b130e530fc30e9306e-sysfs-30a830f330c830ea306b306430443066306e307e30683081/
定義
- linux/kobject.h
struct kobject { const char *name; struct list_head entry; struct kobject *parent; struct kset *kset; struct kobj_type *ktype; struct kernfs_node *sd; struct kref kref; #ifdef CONFIG_DEBUG_KOBJECT_RELEASE struct delayed_work release; #endif unsigned int state_initialized:1; unsigned int state_in_sysfs:1; unsigned int state_add_uevent_sent:1; unsigned int state_remove_uevent_sent:1; unsigned int uevent_suppress:1; };
ドキュメント
設定する項目
関数
- void kobject_init?(struct kobject *);
- int kobject_add?(struct kobject *);
- int kobject_register?(struct kobject *);
- void kobject_del?(struct kobject *);
- void kobject_unregister?(struct kobject *);
- struct kobject * kobject_get?(struct kobject *);
- void kobject_put(struct kobject *);