/DragonOS/kernel/src/exception/ |
H A D | sysfs.rs | 13 file::sysfs_emit_str, Attribute, AttributeGroup, SysFSOps, SysFSOpsSupport, 188 return sysfs_emit_str(buf, &format!("{}\n", hwirq.data())); in show() 219 return sysfs_emit_str(buf, &format!("{}\n", irq_type)); in show() 245 return sysfs_emit_str(buf, &format!("{}\n", wakeup)); in show() 272 return sysfs_emit_str(buf, &format!("{}\n", name)); in show() 306 len += sysfs_emit_str(&mut buf[len..], &format!(",{}", action.inner().name())) in show() 309 len += sysfs_emit_str(&mut buf[len..], &action.inner().name().to_string()).unwrap(); in show() 318 len += sysfs_emit_str(&mut buf[len..], "\n").unwrap(); in show()
|
/DragonOS/kernel/src/driver/pci/ |
H A D | attr.rs | 10 file::sysfs_emit_str, Attribute, AttributeGroup, SysFSOpsSupport, SYSFS_ATTR_MODE_RO, 57 return sysfs_emit_str(_buf, &format!("0x{:04x}", dev.vendor())); in show() 88 return sysfs_emit_str(_buf, &format!("0x{:04x}", dev.device_id())); in show() 119 return sysfs_emit_str(_buf, &format!("0x{:04x}", dev.subsystem_vendor())); in show() 150 return sysfs_emit_str(_buf, &format!("0x{:04x}", dev.subsystem_device())); in show()
|
/DragonOS/kernel/src/driver/video/fbdev/base/ |
H A D | fbsysfs.rs | 8 sysfs::{file::sysfs_emit_str, Attribute, AttributeGroup, SysFSOpsSupport}, 68 return sysfs_emit_str(buf, &format!("{}\n", name)); in show() 97 return sysfs_emit_str(buf, &format!("{}\n", bits_per_pixel)); in show() 199 return sysfs_emit_str(buf, &format!("{},{}\n", var_info.xoffset, var_info.yoffset)); in show() 228 return sysfs_emit_str( in show() 260 return sysfs_emit_str(buf, &format!("{}\n", fix_info.line_length)); in show() 285 return sysfs_emit_str(buf, &format!("{}\n", var_info.rotate_angle)); in show() 314 return sysfs_emit_str(buf, &format!("{}\n", fb.state() as u8)); in show()
|
/DragonOS/kernel/src/driver/rtc/ |
H A D | sysfs.rs | 20 file::sysfs_emit_str, Attribute, AttributeGroup, SysFSOpsSupport, SYSFS_ATTR_MODE_RO, 313 sysfs_emit_str(buf, &format!("{} {}\n", driver_name, device_name)) in show() 337 sysfs_emit_str(buf, &time.date_string()) in show() 360 sysfs_emit_str(buf, &time.time_string()) in show() 383 return sysfs_emit_str(buf, "1\n"); in show() 386 return sysfs_emit_str(buf, "0\n"); in show()
|
/DragonOS/kernel/src/driver/net/ |
H A D | sysfs.rs | 9 file::sysfs_emit_str, Attribute, AttributeGroup, SysFSOpsSupport, SYSFS_ATTR_MODE_RO, 111 sysfs_emit_str(buf, &format!("{}\n", addr_assign_type)) in show() 279 sysfs_emit_str(buf, &format!("{}\n", net_type)) in show() 330 sysfs_emit_str(buf, &format!("{}\n", mac_addr)) in show() 387 sysfs_emit_str(buf, "1\n") in show() 389 sysfs_emit_str(buf, "0\n") in show() 513 sysfs_emit_str(_buf, &format!("{}\n", operstate_str)) in show()
|
/DragonOS/kernel/src/driver/base/ |
H A D | cpu.rs | 25 use crate::filesystem::sysfs::file::sysfs_emit_str; 301 sysfs_emit_str(buf, &data) in show() 325 sysfs_emit_str(buf, &data) in show()
|
/DragonOS/kernel/src/driver/virtio/ |
H A D | sysfs.rs | 28 file::sysfs_emit_str, Attribute, AttributeGroup, SysFSOpsSupport, SYSFS_ATTR_MODE_RO, 328 return sysfs_emit_str(buf, &format!("0x{:04x}\n", device_type_id)); in show() 355 return sysfs_emit_str(buf, &format!("0x{:04x}\n", vendor)); in show()
|
/DragonOS/kernel/src/driver/pci/test/ |
H A D | pt_device.rs | 22 file::sysfs_emit_str, Attribute, AttributeGroup, SysFSOpsSupport, SYSFS_ATTR_MODE_RO, 234 return sysfs_emit_str(_buf, "Hello Pci"); in show()
|
/DragonOS/kernel/src/driver/acpi/ |
H A D | sysfs.rs | 8 file::sysfs_emit_str, sysfs_instance, Attribute, BinAttribute, SysFSOpsSupport, 146 return sysfs_emit_str(buf, "0\n"); in show()
|
/DragonOS/kernel/src/driver/video/fbdev/base/fbcon/ |
H A D | mod.rs | 24 sysfs::{file::sysfs_emit_str, Attribute, AttributeGroup, SysFSOpsSupport}, 291 return sysfs_emit_str(buf, "0\n"); in show()
|
/DragonOS/kernel/src/driver/base/device/ |
H A D | dd.rs | 11 file::sysfs_emit_str, sysfs_instance, Attribute, SysFSOpsSupport, SYSFS_ATTR_MODE_WO, 612 return sysfs_emit_str(buf, format!("{}\n", val).as_str()); in show()
|
H A D | bus.rs | 14 file::sysfs_emit_str, sysfs_instance, Attribute, AttributeGroup, SysFSOps, 678 return sysfs_emit_str(buf, format!("{val}\n").as_str()); in show()
|
H A D | mod.rs | 18 file::sysfs_emit_str, sysfs_instance, Attribute, AttributeGroup, SysFSOps, 944 return sysfs_emit_str(buf, &s); in show()
|
/DragonOS/kernel/src/filesystem/sysfs/ |
H A D | file.rs | 414 pub fn sysfs_emit_str(buf: &mut [u8], s: &str) -> Result<usize, SystemError> { in sysfs_emit_str() function
|
/DragonOS/kernel/src/driver/video/fbdev/ |
H A D | vesafb.rs | 32 sysfs::{file::sysfs_emit_str, Attribute, AttributeGroup, SysFSOpsSupport}, 901 sysfs_emit_str( in show()
|