/DragonOS-0.1.8/kernel/src/ktest/ |
D | ktest.h | 4 int ktest_test_bitree(void* arg); 5 int ktest_test_kfifo(void* arg); 6 int ktest_test_mutex(void* arg); 7 int ktest_test_idr(void* arg); 16 pid_t ktest_start(int (*func)(void* arg), void* arg);
|
D | ktest.c | 11 pid_t ktest_start(int (*func)(void* arg), void* arg) in ktest_start() argument 13 return kernel_thread(func, arg, 0); in ktest_start()
|
D | test-mutex.c | 34 static int ktest_mutex_case1_pid1(void* arg) in ktest_mutex_case1_pid1() argument 81 int ktest_test_mutex(void* arg) in ktest_test_mutex() argument
|
D | test-bitree.c | 123 int ktest_test_bitree(void* arg) in ktest_test_bitree() argument
|
D | test-kfifo.c | 156 int ktest_test_kfifo(void* arg) in ktest_test_kfifo() argument
|
/DragonOS-0.1.8/kernel/src/libs/ |
D | printk.rs | 36 ($($arg:tt)*) => ($crate::libs::printk::__printk(format_args!($($arg)*))); 44 ($($arg:tt)*) => ($crate::print!("{}\n", format_args!($($arg)*))); 53 ($FRcolor:expr, $BKcolor:expr, $($arg:tt)*) => { 55 …riter.__write_string_color($FRcolor, $BKcolor, alloc::fmt::format(format_args!($($arg)*)).as_str()) 61 ($($arg:tt)*) => { 62 …riter.__write_fmt(format_args!("[ DEBUG ] ({}:{})\t{}\n", file!(), line!(),format_args!($($arg)*))) 69 ($($arg:tt)*) => { 70 …Writer.__write_fmt(format_args!("[ INFO ] ({}:{})\t{}\n", file!(), line!(),format_args!($($arg)*))) 76 ($($arg:tt)*) => { 78 …::PrintkWriter.__write_fmt(format_args!("({}:{})\t{}\n", file!(), line!(),format_args!($($arg)*))); [all …]
|
/DragonOS-0.1.8/docs/kernel/ktest/ |
D | ktest-framework.md | 25 uint64_t ktest_test_kfifo(uint64_t arg) 68 `pid_t ktest_start(uint64_t (*func)(uint64_t arg), uint64_t arg)` 80 **arg**
|
/DragonOS-0.1.8/kernel/src/common/ |
D | blk_types.h | 18 long (*ioctl)(long cmd, long arg); 44 void (*end_handler)(ul num, ul arg);
|
D | kthread.h | 36 #define kthread_create(thread_fn, data, name_fmt, arg...) … argument 37 kthread_create_on_node(thread_fn, data, NUMA_NO_NODE, name_fmt, ##arg)
|
/DragonOS-0.1.8/user/libs/libc/src/ |
D | cxa.c | 4 int __cxa_atexit(void (*func)(void *), void *arg, void *d) in __cxa_atexit() argument
|
/DragonOS-0.1.8/kernel/src/exception/ |
D | irq.h | 117 ul (*install)(ul irq_num, void *arg); 157 int irq_register(ul irq_num, void *arg, void (*handler)(ul irq_num, ul parameter, struct pt_regs *r…
|
D | irq.c | 188 int irq_register(ul irq_num, void *arg, void (*handler)(ul irq_num, ul parameter, struct pt_regs *r… in irq_register() argument 215 p->controller->install(irq_num, arg); in irq_register()
|
/DragonOS-0.1.8/kernel/src/driver/interrupt/apic/ |
D | apic_timer.c | 52 uint64_t apic_timer_install(ul irq_num, void *arg) in apic_timer_install() argument 62 apic_timer_set_init_cnt(*(uint64_t *)arg); in apic_timer_install()
|
D | apic.h | 307 ul apic_ioapic_install(ul irq_num, void *arg);
|
D | apic.c | 548 ul apic_ioapic_install(ul irq_num, void *arg) in apic_ioapic_install() argument 550 struct apic_IO_APIC_RTE_entry *entry = (struct apic_IO_APIC_RTE_entry *)arg; in apic_ioapic_install()
|
/DragonOS-0.1.8/kernel/src/filesystem/vfs/ |
D | syscall.rs | 459 pub fn fcntl(fd: i32, cmd: FcntlCommand, arg: i32) -> Result<usize, SystemError> { in fcntl() 462 if arg < 0 || arg as usize >= FileDescriptorVec::PROCESS_MAX_FD { in fcntl() 465 let arg = arg as usize; in fcntl() localVariable 466 for i in arg..FileDescriptorVec::PROCESS_MAX_FD { in fcntl() 495 let arg = arg as u32; in fcntl() localVariable 496 if arg & FD_CLOEXEC != 0 { in fcntl() 526 let arg = arg as u32; in fcntl() localVariable 527 let mode = FileMode::from_bits(arg).ok_or(SystemError::EINVAL)?; in fcntl()
|
D | VFS.h | 190 … (*ioctl)(struct vfs_index_node_t *inode, struct vfs_file_t *file_ptr, uint64_t cmd, uint64_t arg);
|
/DragonOS-0.1.8/kernel/src/arch/x86_64/ |
D | x86_64_ipi.h | 43 int ipi_regiserIPI(uint64_t irq_num, void *arg,
|
D | x86_64_ipi.c | 38 int ipi_regiserIPI(uint64_t irq_num, void *arg, in ipi_regiserIPI() argument
|
/DragonOS-0.1.8/docs/kernel/process_management/ |
D | kthread.md | 23   `kthread_create(thread_fn, data, name_fmt, arg...)` 45 **arg**
|
/DragonOS-0.1.8/kernel/src/smp/ |
D | ipi.h | 37 extern int ipi_regiserIPI(uint64_t irq_num, void *arg,
|
/DragonOS-0.1.8/kernel/src/process/ |
D | process.c | 176 ul initial_kernel_thread(ul arg) in initial_kernel_thread() argument 178 kinfo("initial proc running...\targ:%#018lx, vruntime=%d", arg, current_pcb->virtual_runtime); in initial_kernel_thread() 277 pid_t kernel_thread(int (*fn)(void *), void *arg, unsigned long flags) in kernel_thread() argument 286 regs.rdx = (ul)arg; in kernel_thread()
|
D | process.h | 146 pid_t kernel_thread(int (*fn)(void *), void *arg, unsigned long flags);
|
/DragonOS-0.1.8/kernel/src/driver/keyboard/ |
D | ps2_keyboard.c | 78 …keyboard_ioctl(struct vfs_index_node_t *inode, struct vfs_file_t *filp, uint64_t cmd, uint64_t arg) in ps2_keyboard_ioctl() argument
|
/DragonOS-0.1.8/kernel/src/syscall/ |
D | mod.rs | 974 let arg = args[2] as i32; in handle() localVariable 976 Self::fcntl(fd, cmd, arg) in handle()
|