/DragonOS-0.1.8/kernel/src/common/ |
D | wait_queue.h | 60 #define DECLARE_WAIT_ON_STACK(name, pcb) \ argument 61 wait_queue_node_t name = {0}; \ 62 wait_queue_init(&(name), pcb); 64 #define DECLARE_WAIT_ON_STACK_SELF(name) \ argument 65 wait_queue_node_t name = {0}; \ 66 wait_queue_init(&(name), current_pcb); 68 #define DECLARE_WAIT_ALLOC(name, pcb) \ argument 70 wait_queue_init(&(name), pcb); 72 #define DECLARE_WAIT_ALLOC_SELF(name) \ argument 74 wait_queue_init(&(name), current_pcb); [all …]
|
D | idr.h | 74 #define DECLARE_IDR(name) \ argument 75 struct idr name = {0}; \ 76 idr_init(&(name)); 78 #define DECLARE_IDR_LAYER(name) \ argument 79 struct idr_layer name = {0}; \ 80 memset(name, 0, sizeof(struct idr_layer)); 157 #define DECLARE_IDA(name) \ argument 158 struct ida name = {0}; \ 159 idr_init(&name.idr); \ 160 name.free_list = (NULL);
|
D | asm.h | 24 #define ENTRY(name) \ argument 25 .global SYMBOL_NAME(name); \ 26 SYMBOL_NAME_LABEL(name)
|
D | completion.h | 16 #define DECLARE_COMPLETION_ON_STACK(name) \ argument 17 struct completion name = {0}; \ 18 completion_init(&name);
|
/DragonOS-0.1.8/.github/workflows/ |
D | makefile.yml | 1 name: Build Check 17 - name: Cache DragonOS GCC 21 cache-name: cache-dragonos-gcc 25 … key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('tools/build_gcc_toolchain.sh') }} 28 name: build dragonos-gcc 32 - name: Cache build tools 36 cache-name: cache-build-tools 43 …key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ env.dadk_version }}-${{ hashFiles('.github/w… 46 name: Install toolchain 50 - name: build the DragonOS
|
/DragonOS-0.1.8/kernel/src/filesystem/fat/ |
D | entry.rs | 510 name: &str, in find_entry() 515 LongDirEntry::validate_long_name(name)?; in find_entry() 518 if e.eq_name(name) { in find_entry() 541 pub fn open_file(&self, name: &str, fs: Arc<FATFileSystem>) -> Result<FATFile, SystemError> { in open_file() 542 let f: FATFile = self.find_entry(name, Some(false), None, fs)?.to_file()?; in open_file() 547 pub fn open_dir(&self, name: &str, fs: Arc<FATFileSystem>) -> Result<FATDir, SystemError> { in open_dir() 548 let d: FATDir = self.find_entry(name, Some(true), None, fs)?.to_dir()?; in open_dir() 556 pub fn create_file(&self, name: &str, fs: &Arc<FATFileSystem>) -> Result<FATFile, SystemError> { in create_file() 558 self.check_existence(name, Some(false), fs.clone()); in create_file() 572 LongDirEntry::validate_long_name(name)?; in create_file() [all …]
|
/DragonOS-0.1.8/kernel/src/filesystem/vfs/ |
D | mount.rs | 136 name: &str, in create_with_data() 143 .create_with_data(name, file_type, mode, data); in create_with_data() 203 name: &str, in create() 208 inner_inode: self.inner_inode.create(name, file_type, mode)?, in create() 215 fn link(&self, name: &str, other: &Arc<dyn IndexNode>) -> Result<(), SystemError> { in link() 216 return self.inner_inode.link(name, other); in link() 221 fn unlink(&self, name: &str) -> Result<(), SystemError> { in unlink() 222 let inode_id = self.inner_inode.find(name)?.metadata()?.inode_id; in unlink() 229 return self.inner_inode.unlink(name); in unlink() 233 fn rmdir(&self, name: &str) -> Result<(), SystemError> { in rmdir() [all …]
|
D | mod.rs | 186 name: &str, in create() 191 return self.create_with_data(name, file_type, mode, 0); in create() 297 let name = self.get_entry_name(ino)?; in get_entry_name_and_metadata() localVariable 298 let entry = self.find(&name)?; in get_entry_name_and_metadata() 299 return Ok((name, entry.metadata()?)); in get_entry_name_and_metadata() 399 let name; in lookup_follow_symlink() localVariable 405 name = String::from(&rest_path[0..pos]); in lookup_follow_symlink() 410 name = rest_path; in lookup_follow_symlink() 416 if name.is_empty() { in lookup_follow_symlink() 420 let inode = result.find(&name)?; in lookup_follow_symlink()
|
/DragonOS-0.1.8/kernel/src/filesystem/devfs/ |
D | mod.rs | 100 name: &str, in register_device() 118 dev_char_inode.add_dev(name, device.clone())?; in register_device() 121 if name.starts_with("tty") && name.len() > 3 { in register_device() 122 dev_root_inode.add_dev(name, device.clone())?; in register_device() 137 dev_block_inode.add_dev(name, device.clone())?; in register_device() 151 name: &str, in unregister_device() 168 dev_char_inode.remove(name)?; in unregister_device() 181 dev_block_inode.remove(name)?; in unregister_device() 248 pub fn add_dir(&self, name: &str) -> Result<(), SystemError> { in add_dir() 251 if guard.children.contains_key(name) { in add_dir() [all …]
|
/DragonOS-0.1.8/kernel/src/driver/base/char/ |
D | mod.rs | 64 name: &'static str, //字符设备名 field 76 pub fn new(dev_t: DeviceNumber, minorct: usize, name: &'static str) -> Self { in new() 80 name, in new() 165 name: &'static str, in register_chardev_region() 167 Self::__register_chardev_region(from, count, name) in register_chardev_region() 179 name: &'static str, in alloc_chardev_region() 181 Self::__register_chardev_region(mkdev(0, baseminor), count, name) in alloc_chardev_region() 192 name: &'static str, in __register_chardev_region() 199 name, in __register_chardev_region() 206 name, baseminor, baseminor + minorct - 1, 0, MINOR_MASK); in __register_chardev_region() [all …]
|
/DragonOS-0.1.8/user/dadk/config/ |
D | test_gettimeofday-0.1.0.dadk | 2 "name": "test_gettimeofday", 14 "name": "relibc",
|
D | test_relibc-0.1.0.dadk | 2 "name": "test_relibc", 14 "name": "relibc",
|
D | http_server-0.1.0.dadk | 2 "name": "Http_Server", 14 "name": "relibc",
|
D | test_bind-0.1.0.dadk | 2 "name": "test_bind", 14 "name": "relibc",
|
D | test_sqlite3-3.42.0.dadk | 2 "name": "test_sqlite3", 14 "name": "relibc",
|
D | test_fstat-0.1.0.dadk | 2 "name": "test_fstat", 14 "name": "relibc",
|
/DragonOS-0.1.8/kernel/src/filesystem/ramfs/ |
D | mod.rs | 232 name: &str, in create_with_data() 244 if inode.children.contains_key(name) { in create_with_data() 277 inode.children.insert(String::from(name), result.clone()); in create_with_data() 282 fn link(&self, name: &str, other: &Arc<dyn IndexNode>) -> Result<(), SystemError> { in link() 300 if inode.children.contains_key(name) { in link() 306 .insert(String::from(name), other_locked.self_ref.upgrade().unwrap()); in link() 313 fn unlink(&self, name: &str) -> Result<(), SystemError> { in unlink() 320 if name == "." || name == ".." { in unlink() 325 let to_delete = inode.children.get(name).ok_or(SystemError::ENOENT)?; in unlink() 332 inode.children.remove(name); in unlink() [all …]
|
/DragonOS-0.1.8/kernel/src/filesystem/sysfs/ |
D | bus.rs | 57 pub fn bus_driver_register(bus_name: &str, name: &str) -> Result<Arc<dyn IndexNode>, SystemError> { in bus_driver_register() 65 .add_dir(name), in bus_driver_register() 76 pub fn bus_device_register(bus_name: &str, name: &str) -> Result<Arc<dyn IndexNode>, SystemError> { in bus_device_register() 84 .add_dir(name), in bus_device_register()
|
D | mod.rs | 240 fn find(&self, name: &str) -> Result<Arc<dyn IndexNode>, SystemError> { in find() 247 match name { in find() 254 name => { in find() 260 return Ok(inode.children.get(name).ok_or(SystemError::ENOENT)?.clone()); in find() 339 pub fn add_dir(&self, name: &str) -> Result<Arc<dyn IndexNode>, SystemError> { in add_dir() 342 if guard.children.contains_key(name) { in add_dir() 346 match self.do_create_with_data(guard, name, FileType::Dir, 0o755 as u32, 0) { in add_dir() 359 pub fn add_file(&self, name: &str, file: Arc<dyn IndexNode>) -> Result<(), SystemError> { in add_file() 362 if this.children.contains_key(name) { in add_file() 366 this.children.insert(name.to_string(), file); in add_file() [all …]
|
/DragonOS-0.1.8/kernel/src/time/ |
D | clocksource.rs | 378 cs_data.name, in set_unstable() 413 if ele_data.name.eq(&data.name) && ele_data.rating.eq(&data.rating) { in clocksource_dequeue_watchdog() 429 } else if watchdog.name.eq(&data.name) && watchdog.rating.eq(&data.rating) { in clocksource_dequeue_watchdog() 447 if ele_data.name.eq(&data.name) && ele_data.rating.eq(&data.rating) in clocksource_dequeue_watchdog() 500 if ele_data.name.eq(&data.name) && ele_data.rating.eq(&data.rating) { in clocksource_dequeue() 547 pub name: String, field 561 name: String, in new() 570 name, in new() 582 pub fn set_name(&mut self, name: String) { in set_name() 583 self.name = name; in set_name() [all …]
|
/DragonOS-0.1.8/kernel/src/libs/libUI/ |
D | screen_manager.c | 104 static int __check_ui_param(const char *name, const uint8_t type, const struct scm_ui_framework_ope… in __check_ui_param() argument 106 if (name == NULL) in __check_ui_param() 126 int scm_register_alloc(const char *name, const uint8_t type, struct scm_ui_framework_operations_t *… in scm_register_alloc() argument 133 if (__check_ui_param(name, type, ops) != 0) in scm_register_alloc() 138 strncpy(ui->name, name, 15); in scm_register_alloc() 175 if (__check_ui_param(ui->name, ui->type, ui->ui_ops) != 0) in scm_register()
|
D | screen_manager.h | 46 char name[16]; member 72 int scm_register_alloc(const char *name, const uint8_t type, struct scm_ui_framework_operations_t *…
|
/DragonOS-0.1.8/kernel/src/driver/tty/ |
D | tty_device.rs | 40 name: String, field 47 pub fn new(name: &str) -> Arc<TtyDevice> { in new() 51 private_data: TtyDevicePrivateData::new(name), in new() 72 pub fn name(&self) -> String { in name() method 73 return self.private_data.read().name.clone(); in name() 269 pub fn new(name: &str) -> RwLock<Self> { in new() 273 name: name.to_string(), in new() 313 let r = devfs_register(&tty.name(), tty); in tty_init()
|
/DragonOS-0.1.8/user/apps/test_relibc/ |
D | Makefile | 11 LIBC_OBJS:=$(shell find $(RELIBC_OPT)/lib -name "*.o" | sort ) 17 …$(LD) -b elf64-x86-64 -z muldefs -o $(tmp_output_dir)/test $(shell find . -name "*.o") $(LIBC_OBJ…
|
/DragonOS-0.1.8/user/apps/test_bind/ |
D | Makefile | 11 LIBC_OBJS:=$(shell find $(RELIBC_OPT)/lib -name "*.o" | sort ) 17 …$(LD) -b elf64-x86-64 -z muldefs -o $(tmp_output_dir)/test_bind $(shell find . -name "*.o") $(LIB…
|