/DragonOS/kernel/src/arch/x86_64/init/pvh/ |
H A D | mod.rs | 53 .boot_cmdline_append(cmdline.as_bytes()); in init_kernel_cmdline() 69 send_to_default_serial8250_port("init_memory_area by pvh boot\n\0".as_bytes()); in early_init_memory_blocks() 114 send_to_default_serial8250_port("init_memory_area_from pvh boot end\n\0".as_bytes()); in early_init_memory_blocks() 129 "early_linux32_pvh_init failed: Magic number not matched.\n\0".as_bytes(), in early_linux32_pvh_init() 140 send_to_default_serial8250_port("early_linux32_pvh_init done.\n\0".as_bytes()); in early_linux32_pvh_init()
|
/DragonOS/user/apps/user-manage/src/executor/ |
H A D | executor.rs | 93 .write_all(userinfo.as_bytes()) in write_passwd_file() 124 guard.group_file.write_all(new_content.as_bytes()).unwrap(); in write_group_file() 135 .write_all(data.as_bytes()) in write_shadow_file() 170 .write_all(new_content.as_bytes()) in write_gshadow_file() 212 guard.passwd_file.write_all(new_content.as_bytes()).unwrap(); in update_passwd_file() 241 guard.group_file.write_all(new_content.as_bytes()).unwrap(); in update_group_file() 259 guard.shadow_file.write_all(new_content.as_bytes()).unwrap(); in update_shadow_file() 293 .write_all(new_content.as_bytes()) in update_gshadow_file() 359 guard.passwd_file.write_all(new_content.as_bytes()).unwrap(); in update_passwd_file() 407 guard.group_file.write_all(new_content.as_bytes()).unwrap(); in update_group_file() [all …]
|
/DragonOS/kernel/src/mm/ |
H A D | init.rs | 32 send_to_default_serial8250_port("mm_init\n\0".as_bytes()); in mm_init() 47 send_to_default_serial8250_port("mm_init err\n\0".as_bytes()); in mm_init()
|
/DragonOS/kernel/src/filesystem/procfs/ |
H A D | mod.rs | 163 .as_bytes() in open_status() 178 pdata.append(&mut format!("\nState:\t{:?}", state).as_bytes().to_owned()); in open_status() 186 .as_bytes() in open_status() 193 .as_bytes() in open_status() 203 pdata.append(&mut format!("\ncpu_id:\t{}", cpu_id).as_bytes().to_owned()); in open_status() 204 pdata.append(&mut format!("\npriority:\t{:?}", priority).as_bytes().to_owned()); in open_status() 207 .as_bytes() in open_status() 211 pdata.append(&mut format!("\nvrtime:\t{}", vrtime).as_bytes().to_owned()); in open_status() 224 .as_bytes() in open_status() 227 pdata.append(&mut format!("\nVmData:\t{} kB", data).as_bytes().to_owned()); in open_status() [all …]
|
H A D | kmsg.rs | 86 data_level.append(&mut msg.to_string().as_bytes().to_owned()); in read_level() 145 self.data.append(&mut msg.to_string().as_bytes().to_owned()); in tobytes()
|
/DragonOS/kernel/src/smp/ |
H A D | syscall.rs | 11 let src = unsafe { cpu_manager.possible_cpus().inner().as_bytes() }; in getaffinity()
|
/DragonOS/user/apps/test_lo/src/ |
H A D | main.rs | 9 socket.send(msg.as_bytes())?; in main()
|
/DragonOS/user/apps/test_socket/src/ |
H A D | test_unix_stream_pair.rs | 10 sock1.write_all(MSG.as_bytes())?; in test_unix_stream_pair()
|
H A D | test_unix_stream.rs | 13 stream.write_all(MSG.as_bytes())?; in client()
|
/DragonOS/kernel/src/perf/ |
H A D | util.rs | 94 pub fn as_bytes(&self) -> &[u8] { in as_bytes() method 107 pub fn as_bytes(&self) -> &[u8] { in as_bytes() method
|
H A D | bpf.rs | 186 let new_head = self.write_any(perf_sample.s_hdr.as_bytes(), data_head)?; in write_sample() 203 self.write_any(lost.as_bytes(), data_head) in write_lost()
|
/DragonOS/kernel/src/arch/x86_64/init/ |
H A D | multiboot2.rs | 95 .boot_cmdline_append(cmdline.as_bytes()); in init_kernel_cmdline() 143 send_to_default_serial8250_port("init_memory_area_from_multiboot2\n\0".as_bytes()); in early_init_memory_blocks() 185 send_to_default_serial8250_port("init_memory_area_from_multiboot2 end\n\0".as_bytes()); in early_init_memory_blocks()
|
/DragonOS/kernel/src/libs/lib_ui/ |
H A D | screen_manager.rs | 294 send_to_default_serial8250_port("\nfinish_scm_init\n\0".as_bytes()); in scm_init() 394 send_to_default_serial8250_port("scm_enable_put_to_window() failed.\n\0".as_bytes()); in scm_enable_put_to_window() 412 send_to_default_serial8250_port("scm_disable_put_to_window() failed.\n\0".as_bytes()); in scm_disable_put_to_window() 423 send_to_default_serial8250_port("scm reinit failed.\n\0".as_bytes()); in scm_reinit()
|
H A D | textui.rs | 110 send_to_default_serial8250_port("\ntext ui initialized\n\0".as_bytes()); in textui_framwork_init() 964 send_to_default_serial8250_port("\ntextui_install_handler\n\0".as_bytes()); in install() 1049 .write_to_core(buf.as_bytes(), buf.len()) in rs_textui_putchar()
|
/DragonOS/kernel/src/init/ |
H A D | cmdline.rs | 137 .and_then(|v| str::from_utf8(v.as_bytes()).ok()), in value_str() 271 let value = value.as_bytes(); in early_init() 291 v.value[..len].copy_from_slice(v.default.as_bytes()); in early_init()
|
/DragonOS/kernel/src/filesystem/vfs/ |
H A D | utils.rs | 48 if path.as_bytes()[0] != b'/' { in user_path_at()
|
H A D | core.rs | 291 let buf = old_remain_path.as_bytes(); in do_symlinkat()
|
/DragonOS/kernel/crates/bitmap/src/ |
H A D | alloc_bitmap.rs | 108 unsafe fn as_bytes(&self) -> &[u8] { in as_bytes() method
|
H A D | static_bitmap.rs | 119 unsafe fn as_bytes(&self) -> &[u8] { in as_bytes() function
|
H A D | traits.rs | 311 unsafe fn as_bytes(&self) -> &[u8]; in as_bytes() method
|
/DragonOS/kernel/src/libs/ |
H A D | printk.rs | 46 let _ = tty.write(tty.core(), s.as_bytes(), s.len()); in __write_string()
|
/DragonOS/build-scripts/kernel_build/src/kconfig/ |
H A D | mod.rs | 48 file.write_all(cfg_content.as_bytes()) in make_compile_cfg()
|
/DragonOS/kernel/src/process/ |
H A D | syscall.rs | 45 const RELEASE: &[u8] = env!("CARGO_PKG_VERSION").as_bytes(); in new() 46 const VERSION: &[u8] = env!("CARGO_PKG_VERSION").as_bytes(); in new()
|
/DragonOS/kernel/src/exception/ |
H A D | sysfs.rs | 161 buf[..len].copy_from_slice(name.as_bytes()); in show()
|
/DragonOS/kernel/src/driver/video/ |
H A D | mod.rs | 219 send_to_default_serial8250_port(init_text.as_bytes()); in video_init()
|