Home
last modified time | relevance | path

Searched defs:str (Results 1 – 25 of 25) sorted by relevance

/DragonOS-0.1.8/kernel/src/filesystem/vfs/
Dutils.rs4 pub fn split_path(path: &str) -> (&str, Option<&str>) { in split_path()
15 pub fn rsplit_path(path: &str) -> (&str, Option<&str>) { in rsplit_path()
Dcore.rs113 mountpoint_name: &str, in do_migrate()
203 pub fn do_mkdir(path: &str, _mode: FileMode) -> Result<u64, SystemError> { in do_mkdir()
268 pub fn do_unlink_at(path: &str, _mode: FileMode) -> Result<u64, SystemError> { in do_unlink_at()
Dmount.rs136 name: &str, in create_with_data()
203 name: &str, in create()
215 fn link(&self, name: &str, other: &Arc<dyn IndexNode>) -> Result<(), SystemError> { in link()
249 old_name: &str, in move_()
251 new_name: &str, in move_()
Dmod.rs186 name: &str, in create()
205 _name: &str, in create_with_data()
221 fn link(&self, _name: &str, _other: &Arc<dyn IndexNode>) -> Result<(), SystemError> { in link()
259 _old_name: &str, in move_()
261 _new_name: &str, in move_()
375 path: &str, in lookup_follow_symlink()
Dsyscall.rs129 pub fn open(path: &str, mode: FileMode) -> Result<usize, SystemError> { in open()
333 pub fn mkdir(path: &str, mode: usize) -> Result<usize, SystemError> { in mkdir()
346 pub fn unlinkat(_dirfd: i32, pathname: &str, flags: u32) -> Result<usize, SystemError> { in unlinkat()
/DragonOS-0.1.8/kernel/src/filesystem/sysfs/
Dclass.rs43 device_name: &str, in class_device_register()
61 device_name: &str, in class_device_unregister()
Dbus.rs57 pub fn bus_driver_register(bus_name: &str, name: &str) -> Result<Arc<dyn IndexNode>, SystemError> { in bus_driver_register()
76 pub fn bus_device_register(bus_name: &str, name: &str) -> Result<Arc<dyn IndexNode>, SystemError> { in bus_device_register()
Dmod.rs288 _name: &str, in do_create_with_data()
359 pub fn add_file(&self, name: &str, file: Arc<dyn IndexNode>) -> Result<(), SystemError> { in add_file()
/DragonOS-0.1.8/user/libs/libc/src/
Dprintf.c36 int64_t put_string(char *str, uint64_t front_color, uint64_t bg_color) in put_string()
79 char *str = NULL, *s = NULL; in vsprintf() local
352 static char *write_num(char *str, uint64_t num, int base, int field_width, int precision, int flags) in write_num()
462 static char *write_float_point_num(char *str, double num, int field_width, int precision, int flags) in write_float_point_num()
Dstdlib.c24 int atoi(const char *str) in atoi()
/DragonOS-0.1.8/kernel/src/libs/
Dprintk.rs112 pub fn __write_string(&mut self, s: &str) { in __write_string()
123 pub fn __write_string_color(&self, fr_color: u32, bk_color: u32, s: &str) { in __write_string_color()
171 fn __write_string_on_stack(&self, s: &str) { in __write_string_on_stack()
191 fn __write_string_color_on_stack(&self, fr_color: u32, bk_color: u32, s: &str) { in __write_string_color_on_stack()
Dprintk.c60 char *str = NULL, *s = NULL, *end = NULL; in __do_vsprintf() local
383 static char *write_num(char *str, ul num, int base, int field_width, int precision, int flags) in write_num()
493 static char *write_float_point_num(char *str, double num, int field_width, int precision, int flags) in write_float_point_num()
/DragonOS-0.1.8/kernel/src/debug/traceback/
Dtraceback.c7 const char *str = (const char *)&kallsyms_names; in lookup_kallsyms() local
/DragonOS-0.1.8/kernel/src/filesystem/devfs/
Dmod.rs100 name: &str, in register_device()
151 name: &str, in unregister_device()
265 pub fn add_dev(&self, name: &str, dev: Arc<dyn IndexNode>) -> Result<(), SystemError> { in add_dev()
291 _name: &str, in do_create_with_data()
357 name: &str, in create_with_data()
523 pub fn devfs_register<T: DeviceINode>(name: &str, device: Arc<T>) -> Result<(), SystemError> { in devfs_register()
529 pub fn devfs_unregister<T: DeviceINode>(name: &str, device: Arc<T>) -> Result<(), SystemError> { in devfs_unregister()
/DragonOS-0.1.8/kernel/src/driver/base/char/
Dmod.rs165 name: &'static str, in register_chardev_region()
179 name: &'static str, in alloc_chardev_region()
192 name: &'static str, in __register_chardev_region()
/DragonOS-0.1.8/kernel/src/filesystem/ramfs/
Dmod.rs232 name: &str, in create_with_data()
282 fn link(&self, name: &str, other: &Arc<dyn IndexNode>) -> Result<(), SystemError> { in link()
356 old_name: &str, in move_()
358 new_name: &str, in move_()
/DragonOS-0.1.8/kernel/src/driver/uart/
Duart.rs53 pub fn from_u16(val: u16) -> Result<Self, &'static str> { in from_u16()
279 pub fn uart_init(uart_port: &UartPort, baud_rate: u32) -> Result<i32, &'static str> { in uart_init()
280 let message: &'static str = "uart init."; in uart_init() variable
343 fn uart_send(uart_port: &UartPort, s: &str) { in uart_send()
410 let message: &'static str = "uart init\n"; in c_uart_init() variable
/DragonOS-0.1.8/kernel/src/process/
Dabi.rs55 type Error = &'static str; variable
Dexec.rs116 pub fn new(file_path: &'a str, vm: Arc<AddressSpace>, flags: ExecParamFlags) -> Self { in new()
126 pub fn file_path(&self) -> &'a str { in file_path()
/DragonOS-0.1.8/kernel/src/debug/
Dkallsyms.c53 char str[512] = {0}; in read_symbol() local
/DragonOS-0.1.8/kernel/src/common/
Dlz4.h108 #define LZ4_QUOTE(str) #str argument
109 #define LZ4_EXPAND_AND_QUOTE(str) LZ4_QUOTE(str) argument
/DragonOS-0.1.8/kernel/src/filesystem/fat/
Dentry.rs510 name: &str, in find_entry()
541 pub fn open_file(&self, name: &str, fs: Arc<FATFileSystem>) -> Result<FATFile, SystemError> { in open_file()
547 pub fn open_dir(&self, name: &str, fs: Arc<FATFileSystem>) -> Result<FATDir, SystemError> { in open_dir()
556 pub fn create_file(&self, name: &str, fs: &Arc<FATFileSystem>) -> Result<FATFile, SystemError> { in create_file()
595 pub fn create_dir(&self, name: &str, fs: &Arc<FATFileSystem>) -> Result<FATDir, SystemError> { in create_dir()
678 name: &str, in check_existence()
722 long_name: &str, in create_dir_entries()
794 name: &str, in remove()
846 name: &str, in get_dir_entry()
861 old_name: &str, in rename()
[all …]
Dfs.rs1423 name: &str, in create()
/DragonOS-0.1.8/kernel/src/filesystem/procfs/
Dmod.rs473 name: &str, in create_with_data()
528 fn link(&self, name: &str, other: &Arc<dyn IndexNode>) -> Result<(), SystemError> { in link()
581 _old_name: &str, in move_()
583 _new_name: &str, in move_()
/DragonOS-0.1.8/kernel/src/driver/base/device/
Dmod.rs103 pub fn new(name: &'static str, id: u32) -> IdTable { in new()