Linux Kernel设备驱动模型之struct kobj

    xiaoxiao2021-03-25  108

    设备属性描述:  struct kobj_attribute {  struct attribute attr;  ssize_t (*show)(struct kobject *kobj, struct kobj_attribute *attr,    char *buf);  ssize_t (*store)(struct kobject *kobj, struct kobj_attribute *attr,     const char *buf, size_t count); }; struct attribute {  const char  *name;  umode_t   mode; #ifdef CONFIG_DEBUG_LOCK_ALLOC  bool   ignore_lockdep:1;  struct lock_class_key *key;  struct lock_class_key skey; #endif };    
    转载请注明原文地址: https://ju.6miu.com/read-15117.html

    最新回复(0)