Home
last modified time | relevance | path

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

/linux-6.6.21/include/linux/device/
Dclass.h171 struct class_attribute { struct
173 ssize_t (*show)(const struct class *class, const struct class_attribute *attr, argument
175 ssize_t (*store)(const struct class *class, const struct class_attribute *attr, argument
180 struct class_attribute class_attr_##_name = __ATTR_RW(_name)
182 struct class_attribute class_attr_##_name = __ATTR_RO(_name)
184 struct class_attribute class_attr_##_name = __ATTR_WO(_name)
186 int __must_check class_create_file_ns(const struct class *class, const struct class_attribute *attr,
188 void class_remove_file_ns(const struct class *class, const struct class_attribute *attr,
192 const struct class_attribute *attr) in class_create_file()
198 const struct class_attribute *attr) in class_remove_file()
[all …]
/linux-6.6.21/drivers/base/
Dclass.c26 #define to_class_attr(_attr) container_of(_attr, struct class_attribute, attr)
72 struct class_attribute *class_attr = to_class_attr(attr); in class_attr_show()
84 struct class_attribute *class_attr = to_class_attr(attr); in class_attr_store()
129 int class_create_file_ns(const struct class *cls, const struct class_attribute *attr, in class_create_file_ns()
145 void class_remove_file_ns(const struct class *cls, const struct class_attribute *attr, in class_remove_file_ns()
536 const struct class_attribute *attr, char *buf) in show_class_attr_string()
Ddevcoredump.c170 static ssize_t disabled_show(const struct class *class, const struct class_attribute *attr, in disabled_show()
200 static ssize_t disabled_store(const struct class *class, const struct class_attribute *attr, in disabled_store()
/linux-6.6.21/fs/smb/server/
Dserver.c435 static ssize_t stats_show(const struct class *class, const struct class_attribute *attr, in stats_show()
455 const struct class_attribute *attr, const char *buf, in kill_server_store()
475 static ssize_t debug_show(const struct class *class, const struct class_attribute *attr, in debug_show()
493 static ssize_t debug_store(const struct class *class, const struct class_attribute *attr, in debug_store()
/linux-6.6.21/drivers/base/firmware_loader/
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-6.6.21/arch/powerpc/platforms/pseries/
Ddlpar.c515 static ssize_t dlpar_store(const struct class *class, const struct class_attribute *attr, in dlpar_store()
554 static ssize_t dlpar_show(const struct class *class, const struct class_attribute *attr, in dlpar_show()
Dmobility.c784 const struct class_attribute *attr, const char *buf, in migration_store()
/linux-6.6.21/drivers/net/bonding/
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-6.6.21/drivers/gpio/
Dgpiolib-sysfs.c441 const struct class_attribute *attr, in export_store()
496 const struct class_attribute *attr, in unexport_store()
/linux-6.6.21/drivers/misc/cxl/
Dsysfs.c564 static struct kobj_attribute class_attribute = variable
570 &class_attribute.attr,
/linux-6.6.21/drivers/s390/crypto/
Dzcrypt_api.c322 const struct class_attribute *attr, in zcdn_create_store()
335 static const struct class_attribute class_attr_zcdn_create =
339 const struct class_attribute *attr, in zcdn_destroy_store()
352 static const struct class_attribute class_attr_zcdn_destroy =
/linux-6.6.21/include/net/
Dbonding.h650 struct class_attribute class_attr_bonding_masters;
/linux-6.6.21/drivers/block/zram/
Dzram_drv.c2324 const struct class_attribute *attr, in hot_add_show()
2338 static struct class_attribute class_attr_hot_add =
2342 const struct class_attribute *attr, in hot_remove_store()
/linux-6.6.21/drivers/block/
Dpktcdvd.c330 static ssize_t device_map_show(const struct class *c, const struct class_attribute *attr, in device_map_show()
351 static ssize_t add_store(const struct class *c, const struct class_attribute *attr, in add_store()
372 static ssize_t remove_store(const struct class *c, const struct class_attribute *attr, in remove_store()
/linux-6.6.21/net/core/
Dnet-sysfs.c2090 int netdev_class_create_file_ns(const struct class_attribute *class_attr, in netdev_class_create_file_ns()
2097 void netdev_class_remove_file_ns(const struct class_attribute *class_attr, in netdev_class_remove_file_ns()
/linux-6.6.21/drivers/mtd/ubi/
Dbuild.c98 static ssize_t version_show(const struct class *class, const struct class_attribute *attr, in version_show()
/linux-6.6.21/drivers/infiniband/core/
Duser_mad.c1238 const struct class_attribute *attr, char *buf) in abi_version_show()
/linux-6.6.21/include/linux/
Dnetdevice.h4932 int netdev_class_create_file_ns(const struct class_attribute *class_attr,
4934 void netdev_class_remove_file_ns(const struct class_attribute *class_attr,