Home
last modified time | relevance | path

Searched refs:as_bytes (Results 1 – 25 of 36) sorted by relevance

12

/DragonOS/kernel/src/arch/x86_64/init/pvh/
H A Dmod.rs53 .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 Dexecutor.rs93 .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 Dinit.rs32 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 Dmod.rs163 .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 Dkmsg.rs86 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 Dsyscall.rs11 let src = unsafe { cpu_manager.possible_cpus().inner().as_bytes() }; in getaffinity()
/DragonOS/user/apps/test_lo/src/
H A Dmain.rs9 socket.send(msg.as_bytes())?; in main()
/DragonOS/user/apps/test_socket/src/
H A Dtest_unix_stream_pair.rs10 sock1.write_all(MSG.as_bytes())?; in test_unix_stream_pair()
H A Dtest_unix_stream.rs13 stream.write_all(MSG.as_bytes())?; in client()
/DragonOS/kernel/src/perf/
H A Dutil.rs94 pub fn as_bytes(&self) -> &[u8] { in as_bytes() method
107 pub fn as_bytes(&self) -> &[u8] { in as_bytes() method
H A Dbpf.rs186 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 Dmultiboot2.rs95 .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 Dscreen_manager.rs294 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 Dtextui.rs110 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 Dcmdline.rs137 .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 Dutils.rs48 if path.as_bytes()[0] != b'/' { in user_path_at()
H A Dcore.rs291 let buf = old_remain_path.as_bytes(); in do_symlinkat()
/DragonOS/kernel/crates/bitmap/src/
H A Dalloc_bitmap.rs108 unsafe fn as_bytes(&self) -> &[u8] { in as_bytes() method
H A Dstatic_bitmap.rs119 unsafe fn as_bytes(&self) -> &[u8] { in as_bytes() function
H A Dtraits.rs311 unsafe fn as_bytes(&self) -> &[u8]; in as_bytes() method
/DragonOS/kernel/src/libs/
H A Dprintk.rs46 let _ = tty.write(tty.core(), s.as_bytes(), s.len()); in __write_string()
/DragonOS/build-scripts/kernel_build/src/kconfig/
H A Dmod.rs48 file.write_all(cfg_content.as_bytes()) in make_compile_cfg()
/DragonOS/kernel/src/process/
H A Dsyscall.rs45 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 Dsysfs.rs161 buf[..len].copy_from_slice(name.as_bytes()); in show()
/DragonOS/kernel/src/driver/video/
H A Dmod.rs219 send_to_default_serial8250_port(init_text.as_bytes()); in video_init()

12