/DragonOS/user/apps/test_eventfd/ |
H A D | main.c | 14 ssize_t s; in main() local 31 s = write(efd, &u, sizeof(uint64_t)); in main() 32 if (s != sizeof(uint64_t)) in main() 43 s = read(efd, &u, sizeof(uint64_t)); in main() 44 if (s != sizeof(uint64_t)) in main()
|
/DragonOS/tools/debugging/logmonitor/src/ |
H A D | command.rs | 25 fn kmem_file_parser(s: &str) -> Result<String, String> { in kmem_file_parser() 26 log::warn!("kmem_file_parser: {}", s); in kmem_file_parser() 27 if s.len() == 0 { in kmem_file_parser() 30 return Ok(s.to_string()); in kmem_file_parser()
|
/DragonOS/kernel/src/common/ |
H A D | string.h | 5 static inline int strlen(const char *s) { in strlen() argument 6 if (s == NULL) in strlen() 9 while (s[__res] != '\0') { in strlen()
|
/DragonOS/kernel/src/libs/ |
H A D | printk.rs | 40 pub fn __write_string(&mut self, s: &str) { in __write_string() 46 let _ = tty.write(tty.core(), s.as_bytes(), s.len()); in __write_string() 48 let _ = textui_putstr(s, FontColor::WHITE, FontColor::BLACK); in __write_string() 51 let _ = textui_putstr(s, FontColor::WHITE, FontColor::BLACK); in __write_string() 58 fn write_str(&mut self, s: &str) -> fmt::Result { in write_str() 59 self.__write_string(s); in write_str()
|
H A D | printk.c | 29 static int skip_and_atoi(const char **s) in skip_and_atoi() argument 36 while (is_digit(**s)) in skip_and_atoi() 38 ans = ans * 10 + (**s) - '0'; in skip_and_atoi() 39 ++(*s); in skip_and_atoi() 60 char *str = NULL, *s = NULL, *end = NULL; in __do_vsprintf() local 212 s = va_arg(args, char *); in __do_vsprintf() 213 if (!s) in __do_vsprintf() 214 s = &__end_zero_char; in __do_vsprintf() 215 len = strlen(s); in __do_vsprintf() 237 *str = *s; in __do_vsprintf() [all …]
|
/DragonOS/user/apps/user-manage/ |
H A D | README.md | 7 useradd -c \<comment\> -d \<home\> -G \<group\> -g \<gid\> -s \<shell\> -u \<uid\> username 16 -s Shell 文件 指定用户的登录 Shell 50 usermod -a -G<组 1,组 2,...> -c<备注> -d<登入目录> -G<组名> -l<名称> -s<登入终端> -u<用户 id> username 58 -s\<shell\> 修改用户登入后所使用的 shell。
|
/DragonOS/kernel/src/bpf/helper/ |
H A D | print.rs | 16 fn write_str(&mut self, s: &str) -> core::fmt::Result { in write_str() 17 print!("{}", s); in write_str()
|
/DragonOS/kernel/src/arch/riscv64/driver/ |
H A D | sbi.rs | 22 pub fn console_putstr(s: &[u8]) { in console_putstr() 24 for c in s { in console_putstr() 29 for c in s { in console_putstr()
|
/DragonOS/kernel/src/process/ |
H A D | exec.rs | 233 .map(|s| { in push_at() 234 self.push_str(ustack, s).expect("push_str failed"); in push_at() 242 .map(|s| { in push_at() 243 self.push_str(ustack, s).expect("push_str failed"); in push_at() 284 fn push_str(&self, ustack: &mut UserStack, s: &CString) -> Result<(), SystemError> { in push_str() 285 let bytes = s.as_bytes_with_nul(); in push_str()
|
/DragonOS/kernel/crates/rbpf/examples/ |
H A D | to_json.rs | 67 Some(s) => s, in main()
|
H A D | load_elf.rs | 60 Some(s) => s, in main()
|
/DragonOS/kernel/src/filesystem/fat/ |
H A D | entry.rs | 765 let s = e.short_name(); in is_empty() localVariable 766 if s == "." || s == ".." { in is_empty() 866 let short_name = if let FATDirEntryOrShortName::ShortName(s) = in rename() 869 s in rename() 915 let short_name = if let FATDirEntryOrShortName::ShortName(s) = in rename_across() 918 s in rename_across() 1495 FATRawDirEntry::Short(s) => { in get_dir_entry() 1501 Some(s.convert_to_dir_entry(( in get_dir_entry() 1645 FATRawDirEntry::Short(s) => s, in new() 1680 Some(s) => { in short_name() [all …]
|
/DragonOS/user/apps/test_ebpf/syscall_ebpf/xtask/src/ |
H A D | build_ebpf.rs | 14 fn from_str(s: &str) -> Result<Self, Self::Err> { in from_str() 15 Ok(match s { in from_str()
|
/DragonOS/user/apps/user-manage/src/parser/ |
H A D | cmd.rs | 39 fn from(s: String) -> Self { in from() 40 match s.as_str() { in from()
|
/DragonOS/tools/ |
H A D | build_gcc_toolchain.sh | 89 sleep 0.3s 133 sleep 1s 164 sleep 1s
|
/DragonOS/user/apps/test-chown/ |
H A D | README.md | 7 useradd -d /nonexistent -g 65534 -u 65534 -s /usr/local/bin/false nobody
|
/DragonOS/ |
H A D | .gitignore | 12 *.s
|
/DragonOS/kernel/src/debug/ |
H A D | kallsyms.c | 54 char *s = fgets(str, sizeof(str), filp); in read_symbol() local 55 if (s != str) in read_symbol()
|
/DragonOS/kernel/src/driver/open_firmware/ |
H A D | device_node.rs | 86 self.inner.lock().sibling.as_ref().and_then(|s| s.upgrade()) in sibling()
|
/DragonOS/kernel/src/ |
H A D | Makefile | 3 GARBAGE_PATTERNS := *.o *.s~ *.s *.S~ *.c~ *.h~ kernel
|
/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() 415 let len = if buf.len() > s.len() { in sysfs_emit_str() 416 s.len() in sysfs_emit_str() 420 buf[..len].copy_from_slice(&s.as_bytes()[..len]); in sysfs_emit_str()
|
/DragonOS/kernel/src/driver/serial/serial8250/ |
H A D | serial8250_pio.rs | 194 fn send_bytes(&self, s: &[u8]) { in send_bytes() 199 for c in s { in send_bytes() 333 pub fn send_to_default_serial8250_pio_port(s: &[u8]) { in send_to_default_serial8250_pio_port() 335 port.send_bytes(s); in send_to_default_serial8250_pio_port()
|
/DragonOS/tools/debugging/logmonitor/src/backend/monitor/ |
H A D | mm.rs | 41 .map(|s| s.clone()) in new()
|
/DragonOS/docs/community/code_contribution/ |
H A D | c-coding-style.md | 126 void *func(char* s, int **p);
|
/DragonOS/kernel/src/arch/x86_64/driver/apic/ |
H A D | xapic.rs | 270 let s = self as *const Self as *mut Self; in send_eoi() localVariable 271 (*s).write(XApicOffset::LOCAL_APIC_OFFSET_Local_APIC_EOI, 0); in send_eoi()
|