/DragonOS-0.1.2/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.2/kernel/src/libs/ |
D | printk.rs | 29 ($($arg:tt)*) => ($crate::libs::printk::__printk(format_args!($($arg)*))); 37 ($($arg:tt)*) => ($crate::print!("{}\n", format_args!($($arg)*))); 46 ($FRcolor:expr, $BKcolor:expr, $($arg:tt)*) => { 48 …riter.__write_string_color($FRcolor, $BKcolor, alloc::fmt::format(format_args!($($arg)*)).as_str()) 54 ($($arg:tt)*) => { 56 … alloc::fmt::format(format_args!($($arg)*)).as_str() + "\n").as_str()) 62 ($($arg:tt)*) => { 63 …loc::string::String::from("[ INFO ] ")+ alloc::fmt::format(format_args!($($arg)*)).as_str() + "\n"… 69 ($($arg:tt)*) => { 71 …$crate::libs::printk::PrintkWriter.__write_string((alloc::fmt::format(format_args!($($arg)*)) + "\… [all …]
|
/DragonOS-0.1.2/kernel/src/mm/ |
D | slab.h | 49 void *(*constructor)(void *vaddr, ul arg); 50 void *(*destructor)(void *vaddr, ul arg); 91 …te(ul size, void *(*constructor)(void *vaddr, ul arg), void *(*destructor)(void *vaddr, ul arg), u… 109 void *slab_malloc(struct slab *slab_pool, ul arg); 119 ul slab_free(struct slab *slab_pool, void *addr, ul arg);
|
D | slab.c | 33 …te(ul size, void *(*constructor)(void *vaddr, ul arg), void *(*destructor)(void *vaddr, ul arg), u… in slab_create() argument 163 void *slab_malloc(struct slab *slab_pool, ul arg) in slab_malloc() argument 255 … return slab_pool->constructor((char *)slab_obj_ptr->vaddr + slab_pool->size * i, arg); in slab_malloc() 289 ul slab_free(struct slab *slab_pool, void *addr, ul arg) in slab_free() argument 317 slab_pool->destructor((char *)slab_obj_ptr->vaddr + slab_pool->size * index, arg); in slab_free()
|
/DragonOS-0.1.2/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.2/kernel/src/common/ |
D | kthread.h | 38 #define kthread_create(thread_fn, data, name_fmt, arg...) \ argument 39 kthread_create_on_node(thread_fn, data, NUMA_NO_NODE, name_fmt, ##arg)
|
D | blk_types.h | 18 long (*ioctl)(long cmd, long arg); 45 void (*end_handler)(ul num, ul arg);
|
/DragonOS-0.1.2/kernel/src/driver/interrupt/apic/ |
D | apic_timer.c | 35 uint64_t apic_timer_install(ul irq_num, void *arg) in apic_timer_install() argument 45 apic_timer_set_init_cnt(*(uint64_t *)arg); in apic_timer_install()
|
D | apic.h | 308 ul apic_ioapic_install(ul irq_num, void *arg);
|
D | apic.c | 535 ul apic_ioapic_install(ul irq_num, void *arg) in apic_ioapic_install() argument 537 struct apic_IO_APIC_RTE_entry *entry = (struct apic_IO_APIC_RTE_entry *)arg; in apic_ioapic_install()
|
/DragonOS-0.1.2/kernel/src/exception/ |
D | irq.h | 115 ul (*install)(ul irq_num, void *arg); 155 int irq_register(ul irq_num, void *arg, void (*handler)(ul irq_num, ul parameter, struct pt_regs *r…
|
D | irq.c | 152 int irq_register(ul irq_num, void *arg, void (*handler)(ul irq_num, ul parameter, struct pt_regs *r… in irq_register() argument 180 p->controller->install(irq_num, arg); in irq_register()
|
/DragonOS-0.1.2/docs/kernel/process_management/ |
D | kthread.md | 23   `kthread_create(thread_fn, data, name_fmt, arg...)` 45 **arg**
|
/DragonOS-0.1.2/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.2/kernel/src/smp/ |
D | ipi.h | 37 extern int ipi_regiserIPI(uint64_t irq_num, void *arg,
|
/DragonOS-0.1.2/kernel/src/driver/tty/ |
D | tty.c | 43 long tty_ioctl(struct vfs_index_node_t *inode, struct vfs_file_t *filp, uint64_t cmd, uint64_t arg) in tty_ioctl() argument
|
/DragonOS-0.1.2/kernel/src/process/ |
D | process.h | 157 pid_t kernel_thread(int (*fn)(void *), void *arg, unsigned long flags);
|
D | process.c | 466 ul initial_kernel_thread(ul arg) in initial_kernel_thread() argument 468 kinfo("initial proc running...\targ:%#018lx, vruntime=%d", arg, current_pcb->virtual_runtime); in initial_kernel_thread() 573 pid_t kernel_thread(int (*fn)(void *), void *arg, unsigned long flags) in kernel_thread() argument 582 regs.rdx = (ul)arg; in kernel_thread()
|
/DragonOS-0.1.2/kernel/src/driver/keyboard/ |
D | ps2_keyboard.c | 79 …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.2/kernel/src/filesystem/VFS/ |
D | VFS.h | 191 … (*ioctl)(struct vfs_index_node_t *inode, struct vfs_file_t *file_ptr, uint64_t cmd, uint64_t arg);
|