Home
last modified time | relevance | path

Searched refs:class_attribute (Results 1 – 13 of 13) sorted by relevance

/linux/include/linux/device/
H A Dclass.h167 struct class_attribute { struct
169 ssize_t (*show)(const struct class *class, const struct class_attribute *attr, argument
171 ssize_t (*store)(const struct class *class, const struct class_attribute *attr, argument
176 struct class_attribute class_attr_##_name = __ATTR_RW(_name)
178 struct class_attribute class_attr_##_name = __ATTR_RO(_name)
180 struct class_attribute class_attr_##_name = __ATTR_WO(_name)
182 int __must_check class_create_file_ns(const struct class *class, const struct class_attribute *attr,
184 void class_remove_file_ns(const struct class *class, const struct class_attribute *attr,
188 const struct class_attribute *attr) in class_create_file()
194 const struct class_attribute *attr) in class_remove_file()
[all …]
/linux/drivers/base/
H A Ddevcoredump.c163 static ssize_t disabled_show(const struct class *class, const struct class_attribute *attr, in disabled_show()
193 static ssize_t disabled_store(const struct class *class, const struct class_attribute *attr, in disabled_store()
/linux/drivers/base/firmware_loader/
H A Dsysfs.c28 static ssize_t timeout_show(const struct class *class, const struct class_attribute *attr, in timeout_show()
47 static ssize_t timeout_store(const struct class *class, const struct class_attribute *attr, in timeout_store()
/linux/drivers/net/bonding/
H A Dbond_sysfs.c35 const struct class_attribute *attr, in bonding_show_bonds()
79 const struct class_attribute *attr, in bonding_store_bonds()
131 static const struct class_attribute class_attr_bonding_masters = {
/linux/arch/powerpc/platforms/pseries/
H A Ddlpar.c759 static ssize_t dlpar_store(const struct class *class, const struct class_attribute *attr, in dlpar_store()
798 static ssize_t dlpar_show(const struct class *class, const struct class_attribute *attr, in dlpar_show()
H A Dmobility.c783 const struct class_attribute *attr, const char *buf, in migration_store()
/linux/drivers/gpio/
H A Dgpiolib-sysfs.c605 const struct class_attribute *attr, in export_store()
631 const struct class_attribute *attr, in unexport_store()
/linux/drivers/s390/crypto/
H A Dzcrypt_api.c325 const struct class_attribute *attr, in zcdn_create_store()
338 static const struct class_attribute class_attr_zcdn_create =
342 const struct class_attribute *attr, in zcdn_destroy_store()
355 static const struct class_attribute class_attr_zcdn_destroy =
/linux/include/net/
H A Dbonding.h676 struct class_attribute class_attr_bonding_masters;
/linux/drivers/block/zram/
H A Dzram_drv.c2803 const struct class_attribute *attr, in hot_add_show()
2817 static struct class_attribute class_attr_hot_add =
2821 const struct class_attribute *attr, in hot_remove_store()
/linux/net/core/
H A Dnet-sysfs.c2402 int netdev_class_create_file_ns(const struct class_attribute *class_attr, in netdev_class_create_file_ns()
2409 void netdev_class_remove_file_ns(const struct class_attribute *class_attr, in netdev_class_remove_file_ns()
/linux/drivers/mtd/ubi/
H A Dbuild.c101 static ssize_t version_show(const struct class *class, const struct class_attribute *attr, in version_show()
/linux/include/linux/
H A Dnetdevice.h5235 int netdev_class_create_file_ns(const struct class_attribute *class_attr,
5237 void netdev_class_remove_file_ns(const struct class_attribute *class_attr,