Lines Matching full:attribute

30 struct attribute {  struct
41 * sysfs_attr_init - initialize a dynamically allocated sysfs attribute argument
42 * @attr: struct attribute to initialize
44 * Initialize a dynamically allocated struct attribute so we can
47 * Lockdep gives a nice error when your attribute is added to
62 * struct attribute_group - data structure used to declare an attribute group.
63 * @name: Optional: Attribute group name
64 * If specified, the attribute group will be created in a
70 * attribute of the group. Will be called repeatedly for
71 * each non-binary attribute in the group. Only read/write
73 * return 0 if an attribute is not visible. The returned
75 * attribute. Use SYSFS_GROUP_VISIBLE() when assigning this
80 * binary attribute of the group. Will be called repeatedly
81 * for each binary attribute in the group. Only read/write
84 * return 0 if a binary attribute is not visible. The
91 * Optional: Function to return the size of a binary attribute
93 * attribute in the group. Overwrites the size field embedded
94 * inside the attribute itself.
102 struct attribute *, int);
108 struct attribute **attrs;
124 * simplification of attribute visibility lifetime that implies,
125 * without polluting sysfs with empty attribute directories.
129 * struct attribute *attr, int n)
160 struct kobject *kobj, struct attribute *attr, int n) \
171 * not require the implementation of a per-attribute visibility
192 struct kobject *kobj, struct attribute *a, int n) \
305 struct attribute attr;
330 * enabled. Lockdep gives a nice error when your attribute is
407 ssize_t (*show)(struct kobject *, struct attribute *, char *);
408 ssize_t (*store)(struct kobject *, struct attribute *, const char *, size_t);
426 const struct attribute *attr,
429 const struct attribute * const *attr);
431 const struct attribute *attr, umode_t mode);
433 const struct attribute *attr);
435 void sysfs_remove_file_ns(struct kobject *kobj, const struct attribute *attr,
437 bool sysfs_remove_file_self(struct kobject *kobj, const struct attribute *attr);
438 void sysfs_remove_files(struct kobject *kobj, const struct attribute * const *attr);
472 const struct attribute *attr, const char *group);
474 const struct attribute *attr, const char *group);
553 const struct attribute *attr, in sysfs_create_file_ns()
560 const struct attribute * const *attr) in sysfs_create_files()
566 const struct attribute *attr, umode_t mode) in sysfs_chmod_file()
573 const struct attribute *attr) in sysfs_break_active_protection()
583 const struct attribute *attr, in sysfs_remove_file_ns()
589 const struct attribute *attr) in sysfs_remove_file_self()
595 const struct attribute * const *attr) in sysfs_remove_files()
674 const struct attribute *attr, const char *group) in sysfs_add_file_to_group()
680 const struct attribute *attr, const char *group) in sysfs_remove_file_from_group()
786 const struct attribute *attr) in sysfs_create_file()
792 const struct attribute *attr) in sysfs_remove_file()