Home
last modified time | relevance | path

Searched refs:id (Results 1 – 25 of 32) sorted by relevance

12

/DragonOS-0.1.8/kernel/src/common/
Didr.h86 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 …]
Dcompletion.h39 int id; member
/DragonOS-0.1.8/docs/kernel/core_api/
Ddata_structures.md260 …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/
Didr.c166 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/
Dunistd.md13 传入文件id,缓冲区,以及字节数
19 传入文件id,缓冲区,字节数
25 传入文件id,偏移量,调整模式
Ddirent.md11 ``int fd`` : 文件夹id(不推荐修改)
Dfcntl.md10 传入文件路径,和文件类型(详细请看下面的宏定义),将文件打开并返回文件id
/DragonOS-0.1.8/kernel/src/ktest/
Dtest-idr.c42 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/
Dumount_virt_disk.sh2 uid=`id -u`
Dmount_virt_disk.sh2 uid=`id -u`
/DragonOS-0.1.8/kernel/src/driver/disk/ahci/
Dmod.rs93 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/
Dipi.rs73 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/
Dpcb.md22 进程id
/DragonOS-0.1.8/.github/workflows/
Dmakefile.yml18 id: cache-dragonos-gcc
33 id: cache-build-tools
/DragonOS-0.1.8/kernel/src/mm/
Dkernel_mapper.rs45 Err(id) if id == cpuid => break, in lock_cpu()
/DragonOS-0.1.8/kernel/src/net/
Dmod.rs240 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/
Dscreen_manager.h45 uint16_t id; member
Dtextui.h96 uint32_t id; // 窗口id member
Dscreen_manager.c144 ui->id = scm_ui_max_id++; in scm_register_alloc()
180 ui->id = scm_ui_max_id++; in scm_register()
Dtextui-render.c75 if (window->id != __textui_get_current_window_id()) in textui_refresh_characters()
/DragonOS-0.1.8/kernel/src/driver/virtio/
Dtransport_pci.rs68 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/
Dmod.rs103 pub fn new(name: &'static str, id: u32) -> IdTable { in new()
104 Self(name, id) in new()
/DragonOS-0.1.8/kernel/src/sched/
Dcompletion.c296 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/
Dpci.rs355 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/
Dsysfs.md94 /// @brief: 总线注册,将总线加入全局总线管理器中,并根据id table在sys/bus和sys/devices下生成文件夹

12