Home
last modified time | relevance | path

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

/linux-6.14.4/include/linux/device/
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-6.14.4/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()
551 const struct class_attribute *attr, char *buf) in show_class_attr_string()
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-6.14.4/fs/smb/server/
Dserver.c428 static ssize_t stats_show(const struct class *class, const struct class_attribute *attr, in stats_show()
448 const struct class_attribute *attr, const char *buf, in kill_server_store()
468 static ssize_t debug_show(const struct class *class, const struct class_attribute *attr, in debug_show()
486 static ssize_t debug_store(const struct class *class, const struct class_attribute *attr, in debug_store()
/linux-6.14.4/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.14.4/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.14.4/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.14.4/drivers/gpio/
Dgpiolib-sysfs.c444 const struct class_attribute *attr, in export_store()
503 const struct class_attribute *attr, in unexport_store()
/linux-6.14.4/drivers/misc/cxl/
Dsysfs.c564 static struct kobj_attribute class_attribute = variable
570 &class_attribute.attr,
/linux-6.14.4/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.14.4/include/net/
Dbonding.h673 struct class_attribute class_attr_bonding_masters;
/linux-6.14.4/drivers/block/zram/
Dzram_drv.c2698 const struct class_attribute *attr, in hot_add_show()
2712 static struct class_attribute class_attr_hot_add =
2716 const struct class_attribute *attr, in hot_remove_store()
/linux-6.14.4/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.14.4/net/core/
Dnet-sysfs.c2216 int netdev_class_create_file_ns(const struct class_attribute *class_attr, in netdev_class_create_file_ns()
2223 void netdev_class_remove_file_ns(const struct class_attribute *class_attr, in netdev_class_remove_file_ns()
/linux-6.14.4/drivers/mtd/ubi/
Dbuild.c101 static ssize_t version_show(const struct class *class, const struct class_attribute *attr, in version_show()
/linux-6.14.4/drivers/infiniband/core/
Duser_mad.c1245 const struct class_attribute *attr, char *buf) in abi_version_show()
/linux-6.14.4/include/linux/
Dnetdevice.h5167 int netdev_class_create_file_ns(const struct class_attribute *class_attr,
5169 void netdev_class_remove_file_ns(const struct class_attribute *class_attr,