Home
last modified time | relevance | path

Searched refs:block (Results 1 – 9 of 9) sorted by relevance

/DragonOS-0.1.8/kernel/src/libs/
Dnotifier.rs30 block: Arc<dyn NotifierBlock<T>>, in register()
38 if Arc::as_ptr(&block) == Arc::as_ptr(b) { in register()
41 Arc::as_ptr(&block) in register()
46 if block.priority() > b.priority() { in register()
51 if block.priority() == b.priority() && unique_priority { in register()
59 self.0.insert(index, block); in register()
64 pub fn unregister(&mut self, block: Arc<dyn NotifierBlock<T>>) -> Result<(), SystemError> { in unregister()
67 .drain_filter(|b| Arc::as_ptr(&block) == Arc::as_ptr(b)); in unregister()
106 pub fn register(&mut self, block: Arc<dyn NotifierBlock<T>>) -> Result<(), SystemError> { in register()
108 return notifier_chain_guard.register(block, false); in register()
[all …]
/DragonOS-0.1.8/kernel/src/driver/tty/
Dmod.rs105 pub fn input(&self, buf: &[u8], block: bool) -> Result<usize, TtyError> { in input()
107 let val = self.write_stdin(buf, block)?; in input()
122 pub fn output(&self, buf: &mut [u8], block: bool) -> Result<usize, TtyError> { in output()
123 return self.read_output(buf, block); in output()
133 pub fn stdout(&self, buf: &[u8], block: bool) -> Result<usize, TtyError> { in stdout()
134 return self.write_output(buf, block); in stdout()
144 pub fn stderr(&self, buf: &[u8], block: bool) -> Result<usize, TtyError> { in stderr()
145 return self.write_output(buf, block); in stderr()
155 pub fn read_stdin(&self, buf: &mut [u8], block: bool) -> Result<usize, TtyError> { in read_stdin()
164 if block { in read_stdin()
[all …]
/DragonOS-0.1.8/kernel/src/mm/allocator/
Dslab.rs39 while let Some(block) = block_list.pop() { in grow()
40 self.free_block_list.push(block); in grow()
47 Some(block) => return Some(block.addr() as *mut u8), in allocate()
87 let block = self.head.take().map(|node| { in pop() localVariable
92 return block; in pop()
/DragonOS-0.1.8/kernel/src/io/
DMakefile4 kernel_io_subdirs:=block
Dmod.rs1 pub mod block; module
/DragonOS-0.1.8/docs/kernel/process_management/
Dpcb.md3 PCB的全称为process control block, 它是每个进程/线程的核心控制结构。定义于`kernel/src/process/proc-types.h`中。
/DragonOS-0.1.8/docs/userland/libc/apis/api-list/
Derrno.md183 … #define EWOULDBLOCK 80 /* 操作将被禁止 Operation would block (may be the same value as [EAGAIN]).*/
/DragonOS-0.1.8/docs/community/ChangeLog/V0.1.x/
DV0.1.4.md40 - block io: new: Block IO 调度器. 当具有多核时,io调度器在核心1上运行。 (#158)
DV0.1.5.md48 - block io: delete: 移除Block IO 调度器. (#196)