Home
last modified time | relevance | path

Searched refs:arg (Results 1 – 25 of 32) sorted by relevance

12

/DragonOS-0.1.2/kernel/src/ktest/
Dktest.h4 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);
Dktest.c11 pid_t ktest_start(int (*func)(void* arg), void* arg) in ktest_start() argument
13 return kernel_thread(func, arg, 0); in ktest_start()
Dtest-mutex.c34 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
Dtest-bitree.c123 int ktest_test_bitree(void* arg) in ktest_test_bitree() argument
Dtest-kfifo.c156 int ktest_test_kfifo(void* arg) in ktest_test_kfifo() argument
/DragonOS-0.1.2/kernel/src/libs/
Dprintk.rs29 ($($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/
Dslab.h49 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);
Dslab.c33 …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/
Dktest-framework.md25 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/
Dkthread.h38 #define kthread_create(thread_fn, data, name_fmt, arg...) \ argument
39 kthread_create_on_node(thread_fn, data, NUMA_NO_NODE, name_fmt, ##arg)
Dblk_types.h18 long (*ioctl)(long cmd, long arg);
45 void (*end_handler)(ul num, ul arg);
/DragonOS-0.1.2/kernel/src/driver/interrupt/apic/
Dapic_timer.c35 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()
Dapic.h308 ul apic_ioapic_install(ul irq_num, void *arg);
Dapic.c535 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/
Dirq.h115 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…
Dirq.c152 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/
Dkthread.md23   `kthread_create(thread_fn, data, name_fmt, arg...)`
45 **arg**
/DragonOS-0.1.2/kernel/src/arch/x86_64/
Dx86_64_ipi.h43 int ipi_regiserIPI(uint64_t irq_num, void *arg,
Dx86_64_ipi.c38 int ipi_regiserIPI(uint64_t irq_num, void *arg, in ipi_regiserIPI() argument
/DragonOS-0.1.2/kernel/src/smp/
Dipi.h37 extern int ipi_regiserIPI(uint64_t irq_num, void *arg,
/DragonOS-0.1.2/kernel/src/driver/tty/
Dtty.c43 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/
Dprocess.h157 pid_t kernel_thread(int (*fn)(void *), void *arg, unsigned long flags);
Dprocess.c466 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/
Dps2_keyboard.c79 …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/
DVFS.h191 … (*ioctl)(struct vfs_index_node_t *inode, struct vfs_file_t *file_ptr, uint64_t cmd, uint64_t arg);

12