Home
last modified time | relevance | path

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

/linux-6.15/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)
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()
201 struct class_attribute attr;
[all …]
/linux-6.15/drivers/base/
H A 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()
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-6.15/fs/smb/server/
H A 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.15/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-6.15/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-6.15/arch/powerpc/platforms/pseries/
H A 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()
H A Dmobility.c783 const struct class_attribute *attr, const char *buf, in migration_store()
/linux-6.15/drivers/gpio/
H A Dgpiolib-sysfs.c444 const struct class_attribute *attr, in export_store()
503 const struct class_attribute *attr, in unexport_store()
/linux-6.15/drivers/s390/crypto/
H A 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.15/include/net/
H A Dbonding.h673 struct class_attribute class_attr_bonding_masters;
/linux-6.15/drivers/block/zram/
H A Dzram_drv.c2674 const struct class_attribute *attr, in hot_add_show()
2688 static struct class_attribute class_attr_hot_add =
2692 const struct class_attribute *attr, in hot_remove_store()
/linux-6.15/drivers/block/
H A 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.15/net/core/
H A Dnet-sysfs.c2382 int netdev_class_create_file_ns(const struct class_attribute *class_attr, in netdev_class_create_file_ns()
2389 void netdev_class_remove_file_ns(const struct class_attribute *class_attr, in netdev_class_remove_file_ns()
/linux-6.15/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-6.15/drivers/infiniband/core/
H A Duser_mad.c1245 const struct class_attribute *attr, char *buf) in abi_version_show()
/linux-6.15/include/linux/
H A Dnetdevice.h5220 int netdev_class_create_file_ns(const struct class_attribute *class_attr,
5222 void netdev_class_remove_file_ns(const struct class_attribute *class_attr,