/DragonOS/docs/kernel/core_api/ |
H A D | kernel_api.md | 447 #### `int strlen(const char *s)` 459 #### `long strnlen(const char *src, unsigned long maxlen)` 475 #### `long strnlen_user(const char *src, unsigned long maxlen)` 493 #### `char *strncpy(char *dst, const char *src, long count)` 513 #### `char *strcpy(char *dst, const char *src)` 529 #### `long strncpy_from_user(char *dst, const char *src, unsigned long size)` 551 #### `int strcmp(char *FirstPart, char *SecondPart)` 575 #### `printk(const char* fmt, ...)` 591 #### `printk_color(unsigned int FRcolor, unsigned int BKcolor, const char* fmt, ...)` 615 #### `int vsprintf(char *buf, const char *fmt, va_list args)` [all …]
|
/DragonOS/kernel/src/filesystem/fat/ |
H A D | utils.rs | 2 use core::char::REPLACEMENT_CHARACTER; 9 pub(super) fn decode_u8_ascii(value: u8) -> char { in decode_u8_ascii() argument 11 return value as char; in decode_u8_ascii()
|
H A D | entry.rs | 1957 let cp: char = match c { in copy_part() 1998 let num_suffix: Option<u32> = if name[prefix_len] as char == '~' { 1999 (name[prefix_len + 1] as char).to_digit(10) 2019 let num_suffix: Option<u32> = if name[prefix_len + 4] as char == '~' { 2020 (name[prefix_len + 1] as char).to_digit(10) 2097 buf[prefix_len + 1] = char::from_digit(num, 10).unwrap() as u8; 2105 let c1 = char::from_digit((x as u32 >> 12) & 0xf, 16) 2108 let c2 = char::from_digit((x as u32 >> 8) & 0xf, 16) 2111 let c3 = char::from_digit((x as u32 >> 4) & 0xf, 16) 2114 let c4 = char::from_digit((x as u32) & 0xf, 16)
|
/DragonOS/kernel/src/libs/lib_ui/ |
H A D | textui_no_alloc.rs | 42 character: char, in no_init_textui_putchar_window() argument 64 let char = TextuiCharChromatic::new(Some(' '), frcolor, bkcolor); in no_init_textui_putchar_window() localVariable 68 char.no_init_textui_render_chromatic( in no_init_textui_putchar_window() 81 let char = TextuiCharChromatic::new(Some(' '), frcolor, bkcolor); in no_init_textui_putchar_window() localVariable 82 char.no_init_textui_render_chromatic( in no_init_textui_putchar_window() 102 let char = TextuiCharChromatic::new(Some(character), frcolor, bkcolor); in no_init_textui_putchar_window() localVariable 110 char.no_init_textui_render_chromatic( in no_init_textui_putchar_window()
|
H A D | textui.rs | 287 c: Option<char>, 394 pub fn get_font(character: char) -> Font { in get_font() 409 pub fn new(c: Option<char>, frcolor: FontColor, bkcolor: FontColor) -> Self { in new() argument 756 character: char, in true_textui_putchar_window() argument 799 character: char, in textui_putchar_window() argument 1013 fn index(&self, c: char) -> usize; in index() 1018 F: Sync + Fn(char) -> usize, 1020 fn index(&self, c: char) -> usize { in index() 1043 character as char in rs_textui_putchar() 1055 character as char, in rs_textui_putchar() [all …]
|
/DragonOS/kernel/crates/rbpf/src/ |
H A D | asm_parser.rs | 18 parser::char::{alpha_num, char, digit, hex_digit, spaces, string}, 48 I: Stream<Token = char>, in ident() 56 I: Stream<Token = char>, in integer() 72 I: Stream<Token = char>, in register() 75 char('r') in register() 82 I: Stream<Token = char>, in operand() 87 let memory = between(char('['), char(']'), (register(), optional(integer()))) in operand() 94 I: Stream<Token = char>, in instruction() 97 let operands = sep_by(operand(), char(',').skip(spaces())); in instruction()
|
/DragonOS/kernel/src/driver/base/ |
H A D | mod.rs | 2 pub mod char; module
|
/DragonOS/kernel/src/libs/lib_ui/font/ |
H A D | spleen_font.rs | 9 fn index(&self, c: char) -> usize { in index()
|
H A D | mod.rs | 47 pub fn char_map(&self, character: char) -> &'a [u8] { in char_map()
|
/DragonOS/docs/community/code_contribution/ |
H A D | c-coding-style.md | 125 char *a; 126 void *func(char* s, int **p);
|
/DragonOS/docs/kernel/libs/lib_ui/ |
H A D | textui.md | 24 character: char,
|
/DragonOS/kernel/src/driver/scsi/ |
H A D | mod.rs | 63 let x = (b'a' + id as u8) as char; in format_name()
|
/DragonOS/kernel/src/driver/tty/virtual_terminal/ |
H A D | virtual_console.rs | 740 fn do_getpars(&mut self, c: char) { in do_getpars() argument 1340 match ch as u8 as char { in do_control() 1406 let c = ch as u8 as char; in do_control() 1436 let c = ch as u8 as char; in do_control() 1445 if ch as u8 as char == '8' { in do_control() 1461 let c = ch as u8 as char; in do_control() 1483 let c = ch as u8 as char; in do_control() 1501 let c = ch as u8 as char; in do_control()
|
/DragonOS/kernel/src/driver/tty/tty_ldisc/ |
H A D | ntty.rs | 369 c = (c as char).to_ascii_lowercase() as u8; in receive_buf_standard() 383 c = (c as char).to_ascii_lowercase() as u8; in receive_buf_standard() 671 } else if (c as char).is_control() { in eraser() 682 if (c as char).is_control() && termios.local_mode.contains(LocalMode::ECHOCTL) { in eraser() 689 if !(c as char).is_control() || termios.local_mode.contains(LocalMode::ECHOCTL) in eraser() 851 && (c as char).is_control() in echo_char() 1189 match c as char { in process_output_block() 1219 if !(c as char).is_control() { in process_output_block() 1448 match c as char { in do_output_char() 1508 if !(c as char).is_control() { in do_output_char()
|
/DragonOS/kernel/src/driver/video/fbdev/base/ |
H A D | mod.rs | 845 pub id: [char; 16], 884 pub const fn name2id(name: &str) -> [char; 16] { in name2id() 885 let mut id = [0u8 as char; 16]; 889 id[i] = name.as_bytes()[i] as char;
|
/DragonOS/kernel/src/libs/ |
H A D | keyboard_parser.rs | 354 return match ch as char { in to_ctrl()
|
/DragonOS/kernel/src/init/ |
H A D | cmdline.rs | 469 cmdline.split(move |c: char| { in split_args()
|
/DragonOS/kernel/src/driver/tty/ |
H A D | tty_driver.rs | 16 char::CharDevOps,
|
H A D | tty_device.rs | 12 char::CharDevice,
|
/DragonOS/kernel/src/filesystem/vfs/ |
H A D | mod.rs | 16 block::block_device::BlockDevice, char::CharDevice, device::device_number::DeviceNumber,
|
/DragonOS/kernel/src/driver/block/ |
H A D | virtio_blk.rs | 136 let x = (b'a' + id as u8) as char; in format_name()
|