/DragonOS-0.1.8/kernel/src/common/ |
D | idr.h | 86 int idr_alloc(struct idr *idp, void *ptr, int *id); 87 void *idr_remove(struct idr *idp, int id); 90 void *idr_find(struct idr *idp, int id); 93 int idr_replace_get_old(struct idr *idp, void *ptr, int id, void **oldptr); 94 int idr_replace(struct idr *idp, void *ptr, int id); 97 bool idr_count(struct idr *idp, int id); 111 #define for_each_idr_entry(idp, id, ptr) \ argument 112 …for (id = -1, ptr = idr_find_next_getid(idp, id, &id); ptr != NULL || !idr_count(idp, id); ptr = i… 120 #define for_each_idr_entry_continue(idp, id, ptr) \ argument 121 …(ptr = idr_find_next_getid(idp, id - 1, &id); ptr != NULL || !idr_count(idp, id); ptr = idr_find_n… [all …]
|
D | completion.h | 39 int id; member
|
/DragonOS-0.1.8/docs/kernel/core_api/ |
D | data_structures.md | 260 …emsp; ida的主要作用是分配+管理id. 它能分配一个最小的, 未被分配出去的id. 当您需要管理某个数据结构时, 可能需要使用id来区分不同的目标. 这个时候, ida将会是很好的选择. … 323 `bool ida_count(struct ida *ida_p, int id)` 334 **id** 345 `void ida_remove(struct ida *ida_p, int id)` 356 **id** 358    您要删除的id. 369   释放一个IDA所有的空间, 同时删除ida的所有已经分配的id.(所以您不用担心删除id之后, ida还会占用大量空间.) 402    idr是一个基于radix-tree的ID-pointer的数据结构. 该数据结构提供了建id与数据指针绑定的功能, 它的主要功能有以下4个: 448 `int idr_alloc(struct idr *idp, void *ptr, int *id)` 464 **id** [all …]
|
/DragonOS-0.1.8/kernel/src/libs/ |
D | idr.c | 166 int64_t id = 0; in __idr_get_empty_slot() local 183 id = (id << IDR_BITS) | pos; in __idr_get_empty_slot() 202 return id; in __idr_get_empty_slot() 213 static __always_inline void __idr_mark_full(struct idr *idp, int id, struct idr_layer **stk, int ma… in __idr_mark_full() argument 215 int64_t __id = (int64_t)id; in __idr_mark_full() 248 static __always_inline int __idr_get_path(struct idr *idp, int id, struct idr_layer **stk) in __idr_get_path() argument 250 int64_t __id = (int64_t)id; in __idr_get_path() 294 static __always_inline void __idr_erase_full(struct idr *idp, int id, struct idr_layer **stk, int m… in __idr_erase_full() argument 296 int64_t __id = (int64_t)id; in __idr_erase_full() 364 int64_t id = __idr_get_empty_slot(idp, stk); in __idr_get_new_above_int() local [all …]
|
/DragonOS-0.1.8/docs/userland/libc/apis/api-list/ |
D | unistd.md | 13 传入文件id,缓冲区,以及字节数 19 传入文件id,缓冲区,字节数 25 传入文件id,偏移量,调整模式
|
D | dirent.md | 11 ``int fd`` : 文件夹id(不推荐修改)
|
D | fcntl.md | 10 传入文件路径,和文件类型(详细请看下面的宏定义),将文件打开并返回文件id。
|
/DragonOS-0.1.8/kernel/src/ktest/ |
D | test-idr.c | 42 int id = __lowbit_id(i), chk_id = -1; in ktest_idr_case0() local 49 assert(id == chk_id); in ktest_idr_case0() 91 int *id = idr_remove(&k_idr, a[i]); in ktest_idr_case1() local 92 assert(id != NULL); in ktest_idr_case1() 93 assert(*id == i); in ktest_idr_case1() 100 int *id = idr_remove(&k_idr, a[i]); in ktest_idr_case1() local 101 assert(id != NULL); in ktest_idr_case1() 102 assert(*id == i); in ktest_idr_case1() 126 int *id = idr_remove(&k_idr, a[i]); in ktest_idr_case1() local 127 assert(id != NULL); in ktest_idr_case1() [all …]
|
/DragonOS-0.1.8/tools/ |
D | umount_virt_disk.sh | 2 uid=`id -u`
|
D | mount_virt_disk.sh | 2 uid=`id -u`
|
/DragonOS-0.1.8/kernel/src/driver/disk/ahci/ |
D | mod.rs | 93 let mut id = 0; in ahci_rust_init() localVariable 129 format!("ahci_disk_{}", id), in ahci_rust_init() 134 id += 1; // ID 从0开始 in ahci_rust_init() 140 format!("ahci_{}", id).as_str(), in ahci_rust_init() 146 id, in ahci_rust_init()
|
/DragonOS-0.1.8/kernel/src/arch/x86_64/interrupt/ |
D | ipi.rs | 73 let id = match self { in into() localVariable 79 return x86::apic::ApicId::X2Apic(id as u32); in into() 81 return x86::apic::ApicId::XApic(id as u8); in into()
|
/DragonOS-0.1.8/docs/kernel/process_management/ |
D | pcb.md | 22 进程id
|
/DragonOS-0.1.8/.github/workflows/ |
D | makefile.yml | 18 id: cache-dragonos-gcc 33 id: cache-build-tools
|
/DragonOS-0.1.8/kernel/src/mm/ |
D | kernel_mapper.rs | 45 Err(id) if id == cpuid => break, in lock_cpu()
|
/DragonOS-0.1.8/kernel/src/net/ |
D | mod.rs | 240 Protocol::Unknown(id) => write!(f, "0x{id:02x}"), in fmt() 283 Protocol::Unknown(id) => id, in into()
|
/DragonOS-0.1.8/kernel/src/libs/libUI/ |
D | screen_manager.h | 45 uint16_t id; member
|
D | textui.h | 96 uint32_t id; // 窗口id member
|
D | screen_manager.c | 144 ui->id = scm_ui_max_id++; in scm_register_alloc() 180 ui->id = scm_ui_max_id++; in scm_register()
|
D | textui-render.c | 75 if (window->id != __textui_get_current_window_id()) in textui_refresh_characters()
|
/DragonOS-0.1.8/kernel/src/driver/virtio/ |
D | transport_pci.rs | 68 id if id >= PCI_DEVICE_ID_OFFSET => DeviceType::from(id - PCI_DEVICE_ID_OFFSET), in device_type() 116 if capability.id != PCI_CAP_ID_VNDR { in new()
|
/DragonOS-0.1.8/kernel/src/driver/base/device/ |
D | mod.rs | 103 pub fn new(name: &'static str, id: u32) -> IdTable { in new() 104 Self(name, id) in new()
|
/DragonOS-0.1.8/kernel/src/sched/ |
D | completion.c | 296 waiter_data[i].id = -i; // waiter in __test_completion() 305 worker_data[i].id = i; // worker in __test_completion()
|
/DragonOS-0.1.8/kernel/src/driver/pci/ |
D | pci.rs | 355 if capability.id == PCI_CAP_ID_MSIX { in msix_capability_offset() 364 if capability.id == PCI_CAP_ID_MSI { in msi_capability_offset() 1491 pub id: u8, field 1511 let id = capability_header as u8; in next() localVariable 1526 id, in next() 1539 pub id: u16, field 1559 let id = capability_header as u16; in next() localVariable 1574 id, in next()
|
/DragonOS-0.1.8/docs/kernel/filesystem/ |
D | sysfs.md | 94 /// @brief: 总线注册,将总线加入全局总线管理器中,并根据id table在sys/bus和sys/devices下生成文件夹
|