Home
last modified time | relevance | path

Searched refs:Attribute (Results 1 – 24 of 24) sorted by relevance

/DragonOS/kernel/src/driver/net/
H A Dsysfs.rs9 file::sysfs_emit_str, Attribute, AttributeGroup, SysFSOpsSupport, SYSFS_ATTR_MODE_RO,
50 fn attrs(&self) -> &[&'static dyn Attribute] { in attrs() argument
78 attr: &'static dyn Attribute, in is_visible() argument
92 impl Attribute for AttrAddrAssignType {
119 impl Attribute for AttrAddrLen {
141 impl Attribute for AttrDevId {
163 impl Attribute for AttrIfalias {
189 impl Attribute for AttrIflink {
211 impl Attribute for AttrIfindex {
233 impl Attribute for AttrFeatrues {
[all …]
/DragonOS/kernel/src/driver/video/fbdev/base/
H A Dfbsysfs.rs8 sysfs::{file::sysfs_emit_str, Attribute, AttributeGroup, SysFSOpsSupport},
24 fn attrs(&self) -> &[&'static dyn Attribute] { in attrs() argument
42 _attr: &'static dyn Attribute, in is_visible() argument
51 impl Attribute for AttrName {
75 impl Attribute for AttrBitsPerPixel {
105 impl Attribute for AttrBlank {
128 impl Attribute for AttrMode {
155 impl Attribute for AttrModes {
182 impl Attribute for AttrPan {
211 impl Attribute for AttrVirtualSize {
[all …]
/DragonOS/kernel/src/driver/pci/
H A Dattr.rs10 file::sysfs_emit_str, Attribute, AttributeGroup, SysFSOpsSupport, SYSFS_ATTR_MODE_RO,
25 fn attrs(&self) -> &[&'static dyn Attribute] { in attrs() argument
41 attr: &'static dyn Attribute, in is_visible() argument
50 impl Attribute for Vendor {
81 impl Attribute for DeviceID {
112 impl Attribute for SubsystemVendor {
143 impl Attribute for SubsystemDevice {
174 impl Attribute for Revision {
205 impl Attribute for Class {
236 impl Attribute for Irq {
[all …]
H A Dsubsys.rs169 fn attrs(&self) -> &[&'static dyn crate::filesystem::sysfs::Attribute] { in attrs() argument
176 attr: &'static dyn crate::filesystem::sysfs::Attribute, in is_visible() argument
/DragonOS/kernel/src/filesystem/sysfs/
H A Dmod.rs102 fn attrs(&self) -> &[&'static dyn Attribute]; in attrs() argument
113 attr: &'static dyn Attribute, in is_visible() argument
127 pub trait Attribute: Debug + Send + Sync { interface
142 pub trait BinAttribute: Attribute {
168 fn support(&self, attr: &dyn Attribute) -> SysFSOpsSupport { in support()
179 attr: &dyn Attribute, in show() argument
186 attr: &dyn Attribute, in store() argument
H A Dfile.rs22 use super::{Attribute, BinAttribute, SysFS, SysFSKernPrivateData};
26 attribute: Option<&'static dyn Attribute>,
36 attribute: Option<&'static dyn Attribute>, in new() argument
56 pub fn attribute(&self) -> Option<&'static dyn Attribute> { in attribute() argument
108 attr: &'static dyn Attribute, in create_file() argument
118 attr: &'static dyn Attribute, in add_file_with_mode() argument
181 pub fn remove_file(&self, kobj: &Arc<dyn KObject>, attr: &'static dyn Attribute) { in remove_file() argument
/DragonOS/kernel/src/exception/
H A Dsysfs.rs13 file::sysfs_emit_str, Attribute, AttributeGroup, SysFSOps, SysFSOpsSupport,
68 fn attrs(&self) -> &[&'static dyn Attribute] { in attrs() argument
84 attr: &'static dyn Attribute, in is_visible() argument
138 impl Attribute for AttrChipName {
169 impl Attribute for AttrHardwareIrq {
195 impl Attribute for AttrType {
226 impl Attribute for AttrWakeup {
252 impl Attribute for AttrName {
282 impl Attribute for AttrActions {
H A Dmsi.rs7 filesystem::sysfs::Attribute,
82 sysfs_attribute: Option<&'static dyn Attribute>,
/DragonOS/kernel/src/misc/
H A Dksysfs.rs4 sysfs::{sysfs_instance, Attribute, AttributeGroup},
53 fn attrs(&self) -> &[&'static dyn Attribute] { in attrs() argument
60 attr: &'static dyn Attribute, in is_visible() argument
/DragonOS/kernel/src/driver/rtc/
H A Dsysfs.rs20 file::sysfs_emit_str, Attribute, AttributeGroup, SysFSOpsSupport, SYSFS_ATTR_MODE_RO,
273 fn attrs(&self) -> &[&'static dyn Attribute] { in attrs() argument
280 attr: &'static dyn Attribute, in is_visible() argument
291 impl Attribute for AttrName {
320 impl Attribute for AttrDate {
344 impl Attribute for AttrTime {
367 impl Attribute for AttrHcToSys {
/DragonOS/kernel/src/driver/input/serio/
H A Dsubsys.rs19 sysfs::{Attribute, AttributeGroup},
134 fn attrs(&self) -> &[&'static dyn Attribute] { in attrs() argument
138 fn is_visible(&self, _kobj: Arc<dyn KObject>, _attr: &dyn Attribute) -> Option<ModeType> { in is_visible()
/DragonOS/kernel/src/driver/base/platform/
H A Dsubsys.rs21 sysfs::{Attribute, AttributeGroup},
161 fn attrs(&self) -> &[&'static dyn Attribute] { in attrs() argument
166 fn is_visible(&self, _kobj: Arc<dyn KObject>, attr: &dyn Attribute) -> Option<ModeType> { in is_visible()
/DragonOS/kernel/src/driver/base/
H A Dclass.rs11 use crate::filesystem::sysfs::{sysfs_instance, Attribute, AttributeGroup, SysFSOps};
170 _attr: &dyn Attribute, in show() argument
179 _attr: &dyn Attribute, in store() argument
H A Dcpu.rs26 use crate::filesystem::sysfs::{Attribute, AttributeGroup, SysFSOpsSupport};
269 fn attrs(&self) -> &[&'static dyn Attribute] { in attrs() argument
275 _attr: &'static dyn Attribute, in is_visible() argument
284 impl Attribute for AttrCpuPossible {
308 impl Attribute for AttrCpuOnline {
H A Dkobject.rs14 sysfs::{sysfs_instance, Attribute, AttributeGroup, SysFSOps, SysFSOpsSupport},
138 fn support(&self, attr: &dyn Attribute) -> SysFSOpsSupport { in support()
145 attr: &dyn Attribute, in show() argument
162 attr: &dyn Attribute, in store() argument
/DragonOS/kernel/src/driver/pci/test/
H A Dpt_device.rs22 file::sysfs_emit_str, Attribute, AttributeGroup, SysFSOpsSupport, SYSFS_ATTR_MODE_RO,
235 fn attrs(&self) -> &[&'static dyn Attribute] { in attrs() argument
242 attr: &'static dyn Attribute, in is_visible() argument
250 impl Attribute for Hello {
/DragonOS/kernel/src/driver/video/fbdev/base/fbcon/
H A Dmod.rs24 sysfs::{file::sysfs_emit_str, Attribute, AttributeGroup, SysFSOpsSupport},
259 fn attrs(&self) -> &[&'static dyn Attribute] { in attrs() argument
266 attr: &'static dyn Attribute, in is_visible() argument
275 impl Attribute for AttrRotate {
304 impl Attribute for AttrRotateAll {
327 impl Attribute for AttrCursorBlink {
/DragonOS/kernel/src/driver/base/device/
H A Dbus.rs14 file::sysfs_emit_str, sysfs_instance, Attribute, AttributeGroup, SysFSOps,
408 attr: &'static dyn Attribute, in create_file() argument
414 fn remove_file(&self, bus: &Arc<dyn Bus>, attr: &'static dyn Attribute) { in remove_file() argument
596 impl Attribute for BusAttrDriversProbe {
634 impl Attribute for BusAttrDriversAutoprobe {
724 attr: &dyn Attribute, in show() argument
734 attr: &dyn Attribute, in store() argument
744 impl Attribute for DriverAttrUnbind {
788 impl Attribute for DriverAttrBind {
H A Ddriver.rs10 filesystem::sysfs::{sysfs_instance, Attribute, AttributeGroup},
291 attr: &'static dyn Attribute, in create_attr_file() argument
305 pub fn remove_attr_file(&self, driver: &Arc<dyn Driver>, attr: &'static dyn Attribute) { in remove_attr_file() argument
H A Ddd.rs11 file::sysfs_emit_str, sysfs_instance, Attribute, SysFSOpsSupport, SYSFS_ATTR_MODE_WO,
591 impl Attribute for DeviceAttrStateSynced {
623 impl Attribute for DeviceAttrCoredump {
H A Dmod.rs18 file::sysfs_emit_str, sysfs_instance, Attribute, AttributeGroup, SysFSOps,
453 attr: &dyn Attribute, in store() argument
462 attr: &dyn Attribute, in show() argument
808 attr: &'static dyn Attribute, in create_file() argument
918 impl Attribute for DeviceAttrDev {
/DragonOS/kernel/src/driver/virtio/
H A Dsysfs.rs28 file::sysfs_emit_str, Attribute, AttributeGroup, SysFSOpsSupport, SYSFS_ATTR_MODE_RO,
300 fn attrs(&self) -> &[&'static dyn Attribute] { in attrs() argument
308 impl Attribute for AttrDevice {
335 impl Attribute for AttrVendor {
/DragonOS/kernel/src/driver/acpi/
H A Dsysfs.rs8 file::sysfs_emit_str, sysfs_instance, Attribute, BinAttribute, SysFSOpsSupport,
132 impl Attribute for AttrForceRemove {
207 impl Attribute for AttrAcpiTable {
/DragonOS/kernel/src/driver/video/fbdev/
H A Dvesafb.rs32 sysfs::{file::sysfs_emit_str, Attribute, AttributeGroup, SysFSOpsSupport},
871 fn attrs(&self) -> &[&'static dyn Attribute] { in attrs() argument
872 &[&AnonAttrPhysAddr as &'static dyn Attribute] in attrs()
878 attr: &'static dyn Attribute, in is_visible() argument
887 impl Attribute for AnonAttrPhysAddr {