/DragonOS-0.1.8/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.8/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 | 112 pub fn __write_string(&mut self, s: &str) { in __write_string() argument 123 pub fn __write_string_color(&self, fr_color: u32, bk_color: u32, s: &str) { in __write_string_color() argument 157 pub fn __utf8_to_ascii(&self, s: &str) -> Vec<u8> { in __utf8_to_ascii() 171 fn __write_string_on_stack(&self, s: &str) { in __write_string_on_stack() argument 191 fn __write_string_color_on_stack(&self, fr_color: u32, bk_color: u32, s: &str) { in __write_string_color_on_stack() argument 214 fn write_str(&mut self, s: &str) -> fmt::Result { in write_str()
|
/DragonOS-0.1.8/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 | 186 name: &str, in create() argument 205 _name: &str, in create_with_data() argument 221 fn link(&self, _name: &str, _other: &Arc<dyn IndexNode>) -> Result<(), SystemError> { in link() argument 232 fn unlink(&self, _name: &str) -> Result<(), SystemError> { in unlink() 243 fn rmdir(&self, _name: &str) -> Result<(), SystemError> { in rmdir() 259 _old_name: &str, in move_() argument 261 _new_name: &str, in move_() argument 273 fn find(&self, _name: &str) -> Result<Arc<dyn IndexNode>, SystemError> { in find() 362 pub fn lookup(&self, path: &str) -> Result<Arc<dyn IndexNode>, SystemError> { in lookup() 375 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()
|
/DragonOS-0.1.8/kernel/src/filesystem/sysfs/ |
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() 57 pub fn bus_driver_register(bus_name: &str, name: &str) -> Result<Arc<dyn IndexNode>, SystemError> { in bus_driver_register() argument 76 pub fn bus_device_register(bus_name: &str, name: &str) -> Result<Arc<dyn IndexNode>, SystemError> { in bus_device_register() argument
|
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()
|
/DragonOS-0.1.8/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.8/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.8/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.8/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.8/kernel/src/driver/base/char/ |
D | mod.rs | 64 name: &'static str, //字符设备名 76 pub fn new(dev_t: DeviceNumber, minorct: usize, name: &'static str) -> Self { in new() 165 name: &'static str, in register_chardev_region() argument 179 name: &'static str, in alloc_chardev_region() argument 192 name: &'static str, in __register_chardev_region() argument
|
/DragonOS-0.1.8/kernel/src/driver/uart/ |
D | uart.h | 17 extern void c_uart_send_str(uint16_t port, const char *str);
|
D | uart.rs | 19 use core::{char, intrinsics::offset, str}; 53 pub fn from_u16(val: u16) -> Result<Self, &'static str> { in from_u16() argument 279 pub fn uart_init(uart_port: &UartPort, baud_rate: u32) -> Result<i32, &'static str> { in uart_init() argument 280 let message: &'static str = "uart init."; in uart_init() variable 343 fn uart_send(uart_port: &UartPort, s: &str) { in uart_send() argument 410 let message: &'static str = "uart init\n"; in c_uart_init() variable
|
/DragonOS-0.1.8/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.8/docs/userland/libc/apis/api-list/ |
D | stdlib.md | 18 ``int atoi(const char *str)`` 字符串转数字
|
/DragonOS-0.1.8/kernel/src/process/ |
D | exec.rs | 97 file_path: &'a str, 116 pub fn new(file_path: &'a str, vm: Arc<AddressSpace>, flags: ExecParamFlags) -> Self { in new() argument 126 pub fn file_path(&self) -> &'a str { in file_path() argument 283 fn push_str(&self, ustack: &mut UserStack, s: &str) -> Result<(), SystemError> { in push_str()
|
/DragonOS-0.1.8/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.8/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()
|