/DragonOS-0.1.9/docs/introduction/ |
D | features.md | 7 - [x] 启动引导:Multiboot2 9 - [x] 接口:posix 2008 15 - [x] 页帧分配器 16 - [x] 小对象分配器 17 - [x] VMA 18 - [x] MMIO地址空间自动分配 19 - [x] 页面映射器 20 - [x] 硬件抽象层 21 - [x] 独立的用户地址空间管理机制 22 - [x] C接口兼容层 [all …]
|
/DragonOS-0.1.9/kernel/src/arch/x86_64/math/ |
D | bitcount.h | 9 static __always_inline int __clz(uint32_t x) in __clz() argument 13 : "=a"(x) in __clz() 14 : "a"(x) in __clz() 16 return x; in __clz() 25 static __always_inline int __clzl(unsigned long x) in __clzl() argument 33 : "a"(x) in __clzl() 44 static __always_inline int __clzll(unsigned long long x) in __clzll() argument 52 : "a"(x) in __clzll() 57 static __always_inline int __ctz(uint32_t x) in __ctz() argument 59 asm volatile("tzcnt %%eax, %%eax":"=a"(x):"a"(x):"memory"); in __ctz() [all …]
|
/DragonOS-0.1.9/kernel/src/common/ |
D | glib.h | 33 #define ABS(x) ((x) > 0 ? (x) : -(x)) // 绝对值 argument 35 #define max(x, y) ((x > y) ? (x) : (y)) argument 36 #define min(x, y) ((x < y) ? (x) : (y)) argument 39 #define MASK_HIGH_32bit(x) (x & (0x00000000ffffffffUL)) argument 42 ul round(double x) in round() argument 44 return (ul)(x + 0.5); in round()
|
D | compiler.h | 5 #define likely(x) __builtin_expect(!!(x), 1) argument 6 #define unlikely(x) __builtin_expect(!!(x), 0) argument 122 #define READ_ONCE(x) \ argument 126 typeof(x) __val; \ 129 __read_once_size(__u.__c, &(x), sizeof(x)); \ 136 #define WRITE_ONCE(x, val) \ argument 140 typeof(x) __val; \ 143 __write_once_size(&(x), __u.__c, sizeof(x)); \
|
D | err.h | 6 #define IS_ERR_VALUE(x) unlikely((x) >= (uint64_t)-MAX_ERRNO) argument
|
/DragonOS-0.1.9/docs/community/ChangeLog/ |
D | index.rst | 9 V0.1.x/V0.1.9 10 V0.1.x/V0.1.8 11 V0.1.x/V0.1.7 12 V0.1.x/V0.1.6 13 V0.1.x/V0.1.5 14 V0.1.x/V0.1.4 15 V0.1.x/V0.1.3 16 V0.1.x/V0.1.2 17 V0.1.x/V0.1.1 18 V0.1.x/V0.1.0
|
/DragonOS-0.1.9/kernel/src/common/math/ |
D | round.c | 12 double round(double x) in round() argument 18 } u = {x}; in round() 24 return x; in round() 26 x = -x; in round() 30 FORCE_EVAL(x + toint); in round() 33 y = x + toint - toint - x; in round() 35 y = y + x - 1; in round() 37 y = y + x + 1; in round() 39 y = y + x; in round()
|
D | pow.c | 4 int64_t pow(int64_t x, int y) in pow() argument 9 return x; in pow() 11 return x * x; in pow() 16 res *= x; in pow() 18 x *= x; in pow()
|
D | libm.h | 54 #define FORCE_EVAL(x) \ argument 57 if (sizeof(x) == sizeof(float)) \ 60 __x = (x); \ 63 else if (sizeof(x) == sizeof(double)) \ 66 __x = (x); \ 72 __x = (x); \
|
/DragonOS-0.1.9/kernel/src/arch/x86_64/asm/ |
D | irqflags.rs | 5 let x: usize; in local_irq_save() localVariable 8 asm!("pushfq; pop {}; cli", out(reg) x, options(nomem, preserves_flags)); in local_irq_save() 10 x in local_irq_save() 15 pub fn local_irq_restore(x: usize) { in local_irq_restore() 17 asm!("push {}; popfq", in(reg) x, options(nomem, preserves_flags)); in local_irq_restore()
|
D | bitops.rs | 10 pub fn ffz(x: u64) -> i32 { in ffz() 11 return unsafe { _popcnt64((x & ((!x) - 1)).try_into().unwrap()) }; in ffz()
|
/DragonOS-0.1.9/kernel/src/arch/x86_64/include/asm/ |
D | irqflags.h | 4 #define local_irq_save(x) __asm__ __volatile__("pushfq ; popq %0 ; cli" \ argument 5 : "=g"(x)::"memory") 7 #define local_irq_restore(x) __asm__ __volatile__("pushq %0 ; popfq" ::"g"(x) \ argument
|
/DragonOS-0.1.9/kernel/src/virt/kvm/ |
D | mod.rs | 25 if vm_list.iter().any(|x| x.id == id) { in push_vm() 36 match vm_list.iter().position(|x| x.id == id) { in remove_vm() 52 vm_list.iter().find(|&x| x.id == id).cloned() in vm()
|
/DragonOS-0.1.9/docs/kernel/locking/ |
D | spinlock.md | 50 let x = SpinLock::new(Vec::new()); 60 let x :SpinLock<Vec<i32>>= SpinLock::new(Vec::new()); 62 let mut g :SpinLockGuard<Vec<i32>>= x.lock(); 68 kdebug!("x={:?}", x); 71 kdebug!("x={:?}", x);
|
D | mutex.md | 54 let x :Mutex<Vec<i32>>= Mutex::new(Vec::new()); 56 let mut g :MutexGuard<Vec<i32>>= x.lock(); 62 kdebug!("x={:?}", x); 65 kdebug!("x={:?}", x);
|
/DragonOS-0.1.9/kernel/src/driver/tty/virtual_terminal/ |
D | virtual_console.rs | 216 self.pos = self.cols * self.state.y + self.state.x; in init() 283 self.state.x = 0; in reset() 526 .con_putc(&self, i as u16, self.state.y as u32, self.state.x as u32); in add_softcursor() 544 self.state.x as u32, in hide_softcursor() 551 fn gotoxay(&mut self, x: i32, y: i32) { in gotoxay() 553 self.gotoxy(x, self.top as i32 + y); in gotoxay() 555 self.gotoxy(x, y) in gotoxay() 560 fn gotoxy(&mut self, x: i32, y: i32) { in gotoxy() 561 if x < 0 { in gotoxy() 562 self.state.x = 0; in gotoxy() [all …]
|
/DragonOS-0.1.9/docs/kernel/sched/ |
D | c_waiting.md | 174    函数`completion_init(struct completion *x)`提供了初始化completion的功能。当你使用`DECLARE_COMPLETION_O… 180 | wait_for_completion(struct completion *x) | 将当前进程挂起,并设置挂起状态为PROC_UNINTERRUPTIBLE。 … 181 | wait_for_completion_timeout(struct completion *x, long timeout) | 将当前进程挂起,并设置挂起状态为PROC_UNINTERRU… 182 | wait_for_completion_interruptible(struct completion *x) | 将当前进程挂起,并设置挂起状态为PROC_INTERRUPTIBLE。 … 183 | wait_for_completion_interruptible_timeout(struct completion *x, long timeout) | 将当前进程挂起,并设置挂起状态为P… 184 | wait_for_multicompletion(struct completion x[], int n)| 将当前进程挂起,并设置挂起状态为PROC_UNINTERRUPTIBLE。(等待数… 192 | complete(struct completion *x) | 表明一个事件被完成,从等待队列中唤醒一个进程 | 193 | complete_all(struct completion *x) | 表明与该completion有关的事件被标记为永久完成,并唤醒等待队列中的所有进程 | 199 | completion_done(struct completion *x) | 查询completion的done变量是不是大于0,如果大于0,返回true;否则返回fal… 200 | try_wait_for_completion(struct completion *x) | 查询completion的done变量是不是大于0,如果大于0,返回true(同时令done-…
|
/DragonOS-0.1.9/kernel/src/driver/base/ |
D | kset.rs | 118 kobjects.retain(|x| x.upgrade().is_some()); in leave() 119 let index = kobjects.iter().position(|x| { in leave() 120 if let Some(x) = x.upgrade() { in leave() 121 return Arc::ptr_eq(&x, kobj); in leave() 126 let x = kobjects.remove(index); in leave() localVariable 127 let x = x.upgrade().unwrap(); in leave() localVariable 129 x.set_kset(None); in leave() 137 kobjects.retain(|x| x.upgrade().is_some()); in cleanup_weak()
|
/DragonOS-0.1.9/kernel/src/driver/base/device/ |
D | device_number.rs | 21 pub const fn new(x: u32) -> Self { in new() 22 Major(x) in new() 64 fn from(x: u32) -> Self { in from() 65 Self { data: x } in from()
|
/DragonOS-0.1.9/kernel/src/libs/ |
D | casting.rs | 66 let x: Arc<dyn Any> = self.as_any_arc(); in downcast_arc() localVariable 67 if x.is::<T>() { in downcast_arc() 69 let p = Arc::into_raw(x); in downcast_arc()
|
D | int_like.rs | 39 pub const fn from(x: $backing_type) -> Self { 40 $new_type_name(x) 44 pub const fn new(x: $backing_type) -> Self { 45 Self::from(x) 67 pub const fn new(x: $new_type_name) -> Self { 69 container: $backing_atomic_type::new(x.into()),
|
/DragonOS-0.1.9/kernel/src/arch/riscv64/asm/ |
D | irqflags.h | 4 #define local_irq_save(x) \ argument 9 #define local_irq_restore(x) \ argument
|
D | bitops.rs | 7 pub fn ffz(x: u64) -> i32 { in ffz() 8 (!x).trailing_zeros() as i32 in ffz()
|
/DragonOS-0.1.9/kernel/src/arch/riscv64/include/asm/ |
D | irqflags.h | 4 #define local_irq_save(x) \ argument 9 #define local_irq_restore(x) \ argument
|
/DragonOS-0.1.9/kernel/crates/unified-init/src/ |
D | main.rs | 30 fn x() -> Result<(), SystemError> { in no_element_ne() function 42 fn x() -> Result<(), SystemError> { in one_element() function 53 fn x() -> Result<(), SystemError> { in two_elements() function
|