/DragonOS-0.1.9/kernel/crates/bitmap/src/ |
D | bitmap_core.rs | 18 pub(crate) fn get(&self, n: usize, data: &[T], index: usize) -> Option<bool> { in get() 19 if unlikely(index >= n) { in get() 33 pub(crate) fn set(&self, n: usize, data: &mut [T], index: usize, value: bool) -> Option<bool> { in set() 34 if unlikely(index >= n) { in set() 46 pub(crate) fn set_all(&self, n: usize, data: &mut [T], value: bool) { in set_all() 54 let mask = T::make_mask(n % T::bit_size()); in set_all() 73 pub(crate) fn first_false_index(&self, n: usize, data: &[T]) -> Option<usize> { in first_false_index() 76 return self.make_index(n, i * T::bit_size() + bit); in first_false_index() 84 pub(crate) fn last_index(&self, n: usize, data: &[T]) -> Option<usize> { in last_index() 87 return self.make_index(n, i * T::bit_size() + bit); in last_index() [all …]
|
/DragonOS-0.1.9/kernel/src/libs/ |
D | string.c | 48 char *__stpncpy(char *restrict d, const char *restrict s, size_t n) in __stpncpy() argument 51 for (; n && (*d = *s); n--, s++, d++) in __stpncpy() 54 memset(d, 0, n); in __stpncpy() 58 char *strncpy(char *restrict d, const char *restrict s, size_t n) in strncpy() argument 60 __stpncpy(d, s, n); in strncpy()
|
D | keyboard_parser.rs | 72 TypeOneFSMState::PauseBreak(n) => { in parse() 73 return self.handle_pause_break(*n, scancode_status); in parse() 81 TypeOneFSMState::PrtscPress(n) => return self.handle_prtsc_press(*n, scancode_status), in parse() 82 TypeOneFSMState::PrtscRelease(n) => { in parse() 83 return self.handle_prtsc_release(*n, scancode_status) in parse()
|
/DragonOS-0.1.9/user/apps/test_uart/ |
D | main.c | 10 int n; in main() local 13 n = read(fd, buf, 1); in main() 16 if (n != 0) { // 添加字符串结束符 in main()
|
/DragonOS-0.1.9/docs/kernel/memory_management/ |
D | mmio.md | 27 3. `mmio_create`对申请的地址空间大小按照2的n次幂进行对齐,然后从buddy中申请内存地址空间 61   伙伴(buddy)算法的作用是维护以及组织大块连续内存块的分配和回收,以减少系统时运行产生的外部碎片。伙伴系统中的每个内存块的大小均为$2^n$。 在DragonOS中,伙伴… 63 …时,每次都分配比申请的内存大小更大的最小内存块,同时分配出去的内存块大小为$2^nB$。(e.g. 假设某应用申请了$3B$内存,显然并没有整数值n,使$2^n = 3$ ,且$3 \in [2^… 158 …n}$ bytes,那么可以令$exp = n$。index与exp的换算公式如下:$index = exp - 12$。e.g. 一个大小为$2^{12}$ bytes的内存块,其$exp = …
|
D | allocate-memory.md | 17 …ckedFrameAllocator`的`allocate()`函数,能够分配在物理地址上连续的页帧。请注意,由于底层使用的是buddy分配器,因此页帧数目必须是2的n次幂,且最大大小不超过1GB。
|
/DragonOS-0.1.9/docs/kernel/sched/ |
D | kernel_timer.md | 99 #### 4.2.4. 计算接下来n毫秒或者微秒对应的定时器时间片 109   计算接下来n**毫秒**对应的定时器时间片 113 - expire_ms:n毫秒 127   计算接下来n**微秒**对应的定时器时间片 131 - expire_ms:n微秒
|
D | c_waiting.md | 184 | wait_for_multicompletion(struct completion x[], int n)| 将当前进程挂起,并设置挂起状态为PROC_UNINTERRUPTIBLE。(等待数…
|
/DragonOS-0.1.9/kernel/src/driver/tty/tty_ldisc/ |
D | ntty.rs | 182 let mut n; in receive_buf_common() localVariable 206 n = count.min(room); in receive_buf_common() 207 if n == 0 { in receive_buf_common() 213 self.receive_buf(tty.clone(), &buf[offset..], flags, n); in receive_buf_common() 219 n, in receive_buf_common() 224 offset += n; in receive_buf_common() 226 count -= n; in receive_buf_common() 228 recved += n; in receive_buf_common() 291 let mut n = count.min(NTTY_BUFSIZE - head); in receive_buf_real_raw() localVariable 294 self.read_buf[head..(head + n)].copy_from_slice(&buf[0..n]); in receive_buf_real_raw() [all …]
|
/DragonOS-0.1.9/kernel/src/mm/allocator/ |
D | page_frame.rs | 41 pub fn next_by(&self, n: usize) -> Self { in next_by() 43 number: self.number + n, in next_by() 112 pub fn next_by(&self, n: usize) -> Self { in next_by() 114 number: self.number + n, in next_by() 130 pub fn add(&self, n: PageFrameCount) -> Self { in add() 132 number: self.number + n.data(), in add()
|
/DragonOS-0.1.9/docs/kernel/core_api/ |
D | kernel_api.md | 244 ### `list_for_each_safe(ptr, n, head)` 258 **n** argument 266 ### `list_for_each_prev_safe(ptr, n, head)` 309 ### `list_for_each_entry_safe(pos, n, head, member)` 321 **n** argument 395 ### `list_for_each_entry_safe_continue(pos, n, head, member)` 407 **n** argument 419 ### `list_for_each_entry_safe_continue_reverse(pos, n, head, member)` 429 ### `list_for_each_entry_safe_from(pos, n, head, member)` argument
|
/DragonOS-0.1.9/docs/introduction/ |
D | build_system.md | 148 echo -e "[source.crates-io] \n \ 149 registry = \"https://github.com/rust-lang/crates.io-index\" \n \ 150 \n \ 151 replace-with = 'dragonos-gitee' \n \ 152 [source.dragonos-gitee] \n \ 153 registry = \"https://gitee.com/DragonOS/crates.io-index.git\" \n \
|
/DragonOS-0.1.9/docs/kernel/configuration/ |
D | config.md | 31 - **n:** 不启用,不解析 63 - **n:** 不开启
|
/DragonOS-0.1.9/kernel/src/common/ |
D | string.h | 43 char *strncpy(char *restrict d, const char *restrict s, size_t n);
|
/DragonOS-0.1.9/tools/ |
D | create_hdd_image.sh | 25 n
|
/DragonOS-0.1.9/kernel/src/net/ |
D | syscall.rs | 280 let (n, endpoint) = socket.read(buf); in recvfrom() 283 let n: usize = n?; in recvfrom() localVariable 292 return Ok(n); in recvfrom() 313 let (n, endpoint) = socket.read(&mut buf); in recvmsg() 316 let n: usize = n?; in recvmsg() localVariable 319 iovs.scatter(&buf[..n]); in recvmsg() 325 return Ok(n); in recvmsg()
|
/DragonOS-0.1.9/docs/kernel/debug/ |
D | debug-kernel-with-gdb.md | 42 rust-gdb -n -x tools/.gdbinit 104 136 __asm__ __volatile__("inb %%dx, %0 \n\t" 315 next #或者n,逐行执行程序,但跳过函数调用,直接执行函数调用后的下一行代码。
|
/DragonOS-0.1.9/kernel/src/filesystem/fat/ |
D | fs.rs | 770 pub fn get_cluster_by_relative(&self, start_cluster: Cluster, n: usize) -> Option<Cluster> { in get_cluster_by_relative() 771 return self.cluster_iter(start_cluster).skip(n).next(); in get_cluster_by_relative() 1273 n => return Some(n as u64), in count_free_cluster() 1305 n => return Some(n as u64), in next_free()
|
D | entry.rs | 2237 n if n == self.last_index => { in next() 2239 let ord: u8 = n | 0x40; in next() 2240 let start_idx = ((n - 1) * 13) as usize; in next() 2248 n => { in next() 2250 let start_idx = ((n - 1) * 13) as usize; in next() 2253 n, in next()
|