/DragonOS-0.1.7/user/libs/libc/src/ |
D | printf.c | 10 static char *write_num(char *str, uint64_t num, int base, int field_width, int precision, int flags… 11 static char *write_float_point_num(char *str, double num, int field_width, int precision, int flags… 36 int64_t put_string(char *str, uint64_t front_color, uint64_t bg_color) in put_string() argument 38 return syscall_invoke(SYS_PUT_STRING, (uint64_t)str, front_color, bg_color, 0, 0, 0, 0, 0); in put_string() 79 char *str = NULL, *s = NULL; in vsprintf() local 81 str = buf; in vsprintf() 95 *str = *fmt; in vsprintf() 96 ++str; in vsprintf() 200 *str++ = '%'; in vsprintf() 210 *str = ' '; in vsprintf() [all …]
|
D | stdlib.c | 24 int atoi(const char *str) in atoi() argument 28 while (isspace(*str)) in atoi() 30 str++; in atoi() 33 switch (*str) in atoi() 39 str++; in atoi() 44 while (isdigit(*str)) in atoi() 46 n = 10 * n - (*str++ - '0'); in atoi()
|
/DragonOS-0.1.7/kernel/src/libs/ |
D | printk.c | 25 static char *write_num(char *str, ul num, int base, int field_width, int precision, int flags); 27 static char *write_float_point_num(char *str, double num, int field_width, int precision, int flags… 60 char *str = NULL, *s = NULL, *end = NULL; in __do_vsprintf() local 62 str = buf; in __do_vsprintf() 80 *str = *fmt; in __do_vsprintf() 81 ++str; in __do_vsprintf() 185 *str++ = '%'; in __do_vsprintf() 195 *str = ' '; in __do_vsprintf() 196 ++str; in __do_vsprintf() 200 *str++ = (unsigned char)va_arg(args, int); in __do_vsprintf() [all …]
|
D | printk.rs | 98 pub fn __write_string(&mut self, s: &str) { in __write_string() argument 105 pub fn __write_string_color(&self, fr_color: u32, bk_color: u32, s: &str) { in __write_string_color() argument 115 pub fn __utf8_to_ascii(&self, s: &str) -> Vec<u8> { in __utf8_to_ascii() 132 fn write_str(&mut self, s: &str) -> fmt::Result { in write_str()
|
/DragonOS-0.1.7/kernel/src/filesystem/vfs/ |
D | utils.rs | 4 pub fn split_path(path: &str) -> (&str, Option<&str>) { in split_path() argument 5 let mut path_split: core::str::SplitN<&str> = path.trim_matches('/').splitn(2, "/"); in split_path() 15 pub fn rsplit_path(path: &str) -> (&str, Option<&str>) { in rsplit_path() argument 16 let mut path_split: core::str::RSplitN<&str> = path.trim_matches('/').rsplitn(2, "/"); in rsplit_path()
|
D | mod.rs | 182 name: &str, in create() argument 201 _name: &str, in create_with_data() argument 217 fn link(&self, _name: &str, _other: &Arc<dyn IndexNode>) -> Result<(), SystemError> { in link() argument 228 fn unlink(&self, _name: &str) -> Result<(), SystemError> { in unlink() 239 fn rmdir(&self, _name: &str) -> Result<(), SystemError> { in rmdir() 255 _old_name: &str, in move_() argument 257 _new_name: &str, in move_() argument 269 fn find(&self, _name: &str) -> Result<Arc<dyn IndexNode>, SystemError> { in find() 358 pub fn lookup(&self, path: &str) -> Result<Arc<dyn IndexNode>, SystemError> { in lookup() 371 path: &str, in lookup_follow_symlink() argument [all …]
|
D | mount.rs | 136 name: &str, in create_with_data() argument 203 name: &str, in create() argument 215 fn link(&self, name: &str, other: &Arc<dyn IndexNode>) -> Result<(), SystemError> { in link() argument 221 fn unlink(&self, name: &str) -> Result<(), SystemError> { in unlink() 233 fn rmdir(&self, name: &str) -> Result<(), SystemError> { in rmdir() 249 old_name: &str, in move_() argument 251 new_name: &str, in move_() argument 256 fn find(&self, name: &str) -> Result<Arc<dyn IndexNode>, SystemError> { in find()
|
D | syscall.rs | 32 let path: Result<&str, core::str::Utf8Error> = path.to_str(); in sys_open() 36 let path: &str = path.unwrap(); in sys_open() 184 let dest_path: Result<&str, core::str::Utf8Error> = dest_path.to_str(); in sys_chdir() 190 let dest_path: &str = dest_path.unwrap(); in sys_chdir() 274 let path: Result<&str, core::str::Utf8Error> = path.to_str(); in sys_mkdir() 314 let path: Result<&str, core::str::Utf8Error> = path.to_str(); in sys_unlink_at()
|
/DragonOS-0.1.7/kernel/src/driver/uart/ |
D | uart.rs | 2 use core::{char, intrinsics::offset, str}; 28 pub fn from_u16(val: u16) -> Result<Self, &'static str> { in from_u16() argument 95 pub fn uart_init(uart_port: &UartPort, baud_rate: u32) -> Result<i32, &'static str> { in uart_init() argument 96 let message: &'static str = "uart init."; in uart_init() variable 159 fn uart_send(uart_port: &UartPort, str: &str) { in uart_send() argument 162 for c in str.bytes() { in uart_send() 205 pub extern "C" fn c_uart_send_str(port: u16, str: *const u8) { in c_uart_send_str() 208 while *offset(str, i) != '\0' as u8 { in c_uart_send_str() 209 c_uart_send(port, *offset(str, i)); in c_uart_send_str() 221 let message: &'static str = "uart init\n"; in c_uart_init() variable
|
D | uart.h | 17 extern void c_uart_send_str(uint16_t port, const char *str);
|
/DragonOS-0.1.7/tools/ |
D | batch_delete_loop.py | 7 print("Deleting: " + str(i)) 8 os.system("sudo losetup -d /dev/loop" + str(i))
|
D | list_contributors.py | 10 parser.add_argument('--since', type=str, help='Since date') 11 parser.add_argument('--until', type=str, help='Until date') 12 parser.add_argument('--mode', type=str, help='脚本的运行模式 可选:<all> 输出所有信息\n' +
|
/DragonOS-0.1.7/kernel/src/filesystem/sysfs/ |
D | class.rs | 10 pub fn sys_class_register(class_name: &str) -> Result<Arc<dyn IndexNode>, SystemError> { in sys_class_register() 25 pub fn sys_class_unregister(class_name: &str) -> Result<(), SystemError> { in sys_class_unregister() 43 device_name: &str, in class_device_register() argument 61 device_name: &str, in class_device_unregister() argument
|
D | devices.rs | 10 pub fn sys_device_register(device_name: &str) -> Result<Arc<dyn IndexNode>, SystemError> { in sys_device_register() 25 pub fn sys_device_unregister(device_name: &str) -> Result<(), SystemError> { in sys_device_unregister()
|
D | fs.rs | 10 pub fn fs_register(fs_name: &str) -> Result<Arc<dyn IndexNode>, SystemError> { in fs_register() 25 pub fn fs_unregister(fs_name: &str) -> Result<(), SystemError> { in fs_unregister()
|
D | bus.rs | 10 pub fn sys_bus_register(bus_name: &str) -> Result<Arc<dyn IndexNode>, SystemError> { in sys_bus_register() 25 pub fn sys_bus_unregister(bus_name: &str) -> Result<(), SystemError> { in sys_bus_unregister()
|
/DragonOS-0.1.7/kernel/src/debug/ |
D | kallsyms.c | 53 char str[512] = {0}; in read_symbol() local 54 int retval = fscanf(filp, "%llx %c %510s\n", &entry->vaddr, &entry->type, str); in read_symbol() 62 fgets(str, 512, filp); in read_symbol() 68 entry->symbol = strdup(str); in read_symbol() 69 entry->symbol_length = strlen(str) + 1; // +1的原因是.asciz指令会在字符串末尾自动添加结束符\0 in read_symbol()
|
/DragonOS-0.1.7/kernel/src/debug/traceback/ |
D | traceback.c | 7 const char *str = (const char *)&kallsyms_names; in lookup_kallsyms() local 22 …printk("function:%s() \t(+) %04d address:%#018lx\n", &str[kallsyms_names_index[index]], addr - kal… in lookup_kallsyms()
|
/DragonOS-0.1.7/user/libs/libc/src/include/export/ |
D | stdlib.h | 39 int atoi(const char * str);
|
D | stdio.h | 47 int64_t put_string(char *str, uint64_t front_color, uint64_t bg_color);
|
/DragonOS-0.1.7/kernel/src/filesystem/devfs/ |
D | mod.rs | 100 name: &str, in register_device() argument 151 name: &str, in unregister_device() argument 248 pub fn add_dir(&self, name: &str) -> Result<(), SystemError> { in add_dir() 265 pub fn add_dev(&self, name: &str, dev: Arc<dyn IndexNode>) -> Result<(), SystemError> { in add_dev() argument 276 pub fn remove(&self, name: &str) -> Result<(), SystemError> { in remove() 291 _name: &str, in do_create_with_data() argument 357 name: &str, in create_with_data() argument 368 fn find(&self, name: &str) -> Result<Arc<dyn IndexNode>, SystemError> { in find() 523 pub fn devfs_register<T: DeviceINode>(name: &str, device: Arc<T>) -> Result<(), SystemError> { in devfs_register() argument 529 pub fn devfs_unregister<T: DeviceINode>(name: &str, device: Arc<T>) -> Result<(), SystemError> { in devfs_unregister() argument
|
/DragonOS-0.1.7/docs/userland/libc/apis/api-list/ |
D | stdlib.md | 18 ``int atoi(const char *str)`` 字符串转数字
|
D | stdio.md | 8 ``int64_t put_string(char *str, uint64_t front_color, uint64_t bg_color)``
|
/DragonOS-0.1.7/kernel/src/common/ |
D | lz4.h | 108 #define LZ4_QUOTE(str) #str argument 109 #define LZ4_EXPAND_AND_QUOTE(str) LZ4_QUOTE(str) argument
|
/DragonOS-0.1.7/kernel/src/filesystem/ramfs/ |
D | mod.rs | 232 name: &str, in create_with_data() argument 282 fn link(&self, name: &str, other: &Arc<dyn IndexNode>) -> Result<(), SystemError> { in link() argument 313 fn unlink(&self, name: &str) -> Result<(), SystemError> { in unlink() 336 fn rmdir(&self, name: &str) -> Result<(), SystemError> { in rmdir() 356 old_name: &str, in move_() argument 358 new_name: &str, in move_() argument 373 fn find(&self, name: &str) -> Result<Arc<dyn IndexNode>, SystemError> { in find()
|