Home
last modified time | relevance | path

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

/linux-6.12.1/include/linux/device/
Dclass.h169 struct class_attribute { struct
171 ssize_t (*show)(const struct class *class, const struct class_attribute *attr, argument
173 ssize_t (*store)(const struct class *class, const struct class_attribute *attr, argument
178 struct class_attribute class_attr_##_name = __ATTR_RW(_name)
180 struct class_attribute class_attr_##_name = __ATTR_RO(_name)
182 struct class_attribute class_attr_##_name = __ATTR_WO(_name)
184 int __must_check class_create_file_ns(const struct class *class, const struct class_attribute *attr,
186 void class_remove_file_ns(const struct class *class, const struct class_attribute *attr,
190 const struct class_attribute *attr) in class_create_file()
196 const struct class_attribute *attr) in class_remove_file()
[all …]
/linux-6.12.1/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()
544 const struct class_attribute *attr, char *buf) in show_class_attr_string()
Ddevcoredump.c167 static ssize_t disabled_show(const struct class *class, const struct class_attribute *attr, in disabled_show()
197 static ssize_t disabled_store(const struct class *class, const struct class_attribute *attr, in disabled_store()
/linux-6.12.1/fs/smb/server/
Dserver.c439 static ssize_t stats_show(const struct class *class, const struct class_attribute *attr, in stats_show()
459 const struct class_attribute *attr, const char *buf, in kill_server_store()
479 static ssize_t debug_show(const struct class *class, const struct class_attribute *attr, in debug_show()
497 static ssize_t debug_store(const struct class *class, const struct class_attribute *attr, in debug_store()
/linux-6.12.1/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.12.1/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.12.1/arch/powerpc/platforms/pseries/
Ddlpar.c711 static ssize_t dlpar_store(const struct class *class, const struct class_attribute *attr, in dlpar_store()
750 static ssize_t dlpar_show(const struct class *class, const struct class_attribute *attr, in dlpar_show()
Dmobility.c783 const struct class_attribute *attr, const char *buf, in migration_store()
/linux-6.12.1/drivers/gpio/
Dgpiolib-sysfs.c452 const struct class_attribute *attr, in export_store()
509 const struct class_attribute *attr, in unexport_store()
/linux-6.12.1/drivers/misc/cxl/
Dsysfs.c564 static struct kobj_attribute class_attribute = variable
570 &class_attribute.attr,
/linux-6.12.1/drivers/s390/crypto/
Dzcrypt_api.c320 const struct class_attribute *attr, in zcdn_create_store()
333 static const struct class_attribute class_attr_zcdn_create =
337 const struct class_attribute *attr, in zcdn_destroy_store()
350 static const struct class_attribute class_attr_zcdn_destroy =
/linux-6.12.1/include/net/
Dbonding.h673 struct class_attribute class_attr_bonding_masters;
/linux-6.12.1/drivers/block/zram/
Dzram_drv.c2464 const struct class_attribute *attr, in hot_add_show()
2478 static struct class_attribute class_attr_hot_add =
2482 const struct class_attribute *attr, in hot_remove_store()
/linux-6.12.1/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.12.1/net/core/
Dnet-sysfs.c2185 int netdev_class_create_file_ns(const struct class_attribute *class_attr, in netdev_class_create_file_ns()
2192 void netdev_class_remove_file_ns(const struct class_attribute *class_attr, in netdev_class_remove_file_ns()
/linux-6.12.1/drivers/mtd/ubi/
Dbuild.c101 static ssize_t version_show(const struct class *class, const struct class_attribute *attr, in version_show()
/linux-6.12.1/drivers/infiniband/core/
Duser_mad.c1245 const struct class_attribute *attr, char *buf) in abi_version_show()
/linux-6.12.1/include/linux/
Dnetdevice.h4944 int netdev_class_create_file_ns(const struct class_attribute *class_attr,
4946 void netdev_class_remove_file_ns(const struct class_attribute *class_attr,