Searched refs:self (Results 1 – 8 of 8) sorted by relevance
/DragonOS-0.1.7/docs/kernel/locking/ |
D | lockref.md | 61 - `pub fn inc(&mut self)` 62 - `pub fn inc_not_zero(&mut self) -> Result<i32, SystemError>` 63 - `pub fn inc_not_dead(&mut self) -> Result<i32, SystemError>` 85 | Ok(self.count) | 成功,返回新的引用计数 | 98 | Ok(self.count) | 成功,返回新的引用计数 | 102 - `pub fn dec(&mut self) -> Result<i32, SystemError>` 103 - `pub fn dec_return(&mut self) -> Result<i32, SystemError>` 104 - `pub fn dec_not_zero(&mut self) -> Result<i32, SystemError>` 105 - `pub fn dec_or_lock_not_zero(&mut self) -> Result<i32, SystemError>` 119 | Ok(self.count) | 成功,返回新的引用计数 | [all …]
|
D | rwlock.md | 86 pub fn read(&self) -> RwLockReadGuard<T> 90 pub fn try_read(&self) -> Option<RwLockReadGuard<T>> 94 pub fn write(&self) -> RwLockWriteGuard<T> 98 pub fn try_write(&self) -> Option<RwLockWriteGuard<T>> 102 pub fn upgradeable_read(&self) -> RwLockUpgradableGuard<T> 106 pub fn try_upgradeable_read(&self) -> Option<RwLockUpgradableGuard<T>> 111 pub fn downgrade(self) -> RwLockReadGuard<'rwlock, T> 115 pub fn downgrade_to_upgradeable(self) -> RwLockUpgradableGuard<'rwlock, T> 120 pub fn upgrade(mut self) -> RwLockWriteGuard<'rwlock, T> 124 pub fn downgrade(self) -> RwLockReadGuard<'rwlock, T>
|
D | mutex.md | 106 pub fn lock(&self) -> MutexGuard<T> 120 pub fn try_lock(&self) -> Result<MutexGuard<T>, i32>
|
/DragonOS-0.1.7/docs/kernel/core_api/ |
D | softirq.md | 30 fn run(&self); 40 pub fn register_softirq(&self, 61 pub fn unregister_softirq(&self, softirq_num: SoftirqNumber) 72 pub fn do_softirq(&self) 80 pub unsafe fn clear_softirq_pending(&self, softirq_num: SoftirqNumber) 92 pub fn raise_softirq(&self, softirq_num: SoftirqNumber) 114 fn run(&self) { 115 if self.set_run() == false { 121 self.clear_run(); 131 fn set_run(&self) -> bool { [all …]
|
D | casting.md | 32 pub fn to_posix_errno(&self) -> i32 { 33 return -<Self as ToPrimitive>::to_i32(self).unwrap(); 50 fn as_any_arc(self: Arc<Self>) -> Arc<dyn Any> { 51 return self;
|
/DragonOS-0.1.7/docs/kernel/memory_management/ |
D | mmio.md | 166 …数。系统中已经创建了一个MmioBuddyMemPool类型的全局引用`MMIO_POOL`,如要使用以下函数,请以`MMIO_POOL.xxx()`形式使用,以此形式使用则不需要传入self。** 170 | __create_region(&self, vaddr) | 将虚拟地址传入,创建新的内存块地址结构体 … 171 | __give_back_block(&self, vaddr, exp) | 将地址为vaddr,幂为exp的内存块归还给buddy … 172 | __buddy_split(&self,region,exp,list_guard) | 将给定大小为$2^{exp}$的内存块一分为二,并插入内存… 173 | __query_addr_region(&self,exp,list_guard) | 从buddy中申请一块大小为$2^{exp}$的内存块 … 174 | mmio_buddy_query_addr_region(&self,exp) | 对query_addr_region进行封装,**请使用这… 175 | __buddy_add_region_obj(&self,region,list_guard) | 往指定的地址空间链表中添加一个内存块 … 176 | __buddy_block_vaddr(&self, vaddr, exp) | 根据地址和内存块大小,计算伙伴块虚拟内存的地址 … 177 | __pop_buddy_block( &self, vaddr,exp,list_guard) | 寻找并弹出指定内存块的伙伴块 … 178 | __buddy_pop_region( &self, list_guard) | 从指定空闲链表中取出内存区域 … [all …]
|
/DragonOS-0.1.7/docs/kernel/sched/ |
D | kernel_timer.md | 20 fn run(&mut self); 48 pub fn activate(&self) 154 fn run(&mut self) { 156 example_func(self.example_parameter);
|
/DragonOS-0.1.7/kernel/src/process/ |
D | kthread.c | 163 struct kthread_info_t *self = to_kthread(current_pcb); in kthread() local 165 self->thread_fn = thread_fn; in kthread() 166 self->data = data; in kthread() 185 if (!(self->flags & (1 << KTHREAD_SHOULD_STOP))) in kthread() 261 struct kthread_info_t *self = to_kthread(current_pcb); in kthread_should_stop() local 262 if (self->flags & (1 << KTHREAD_SHOULD_STOP)) in kthread_should_stop()
|