Home
last modified time | relevance | path

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

12

/DragonOS-0.1.8/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.8/kernel/src/libs/
Dprintk.rs36 ($($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/
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.8/kernel/src/common/
Dblk_types.h18 long (*ioctl)(long cmd, long arg);
44 void (*end_handler)(ul num, ul arg);
Dkthread.h36 #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/
Dcxa.c4 int __cxa_atexit(void (*func)(void *), void *arg, void *d) in __cxa_atexit() argument
/DragonOS-0.1.8/kernel/src/exception/
Dirq.h117 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…
Dirq.c188 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/
Dapic_timer.c52 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()
Dapic.h307 ul apic_ioapic_install(ul irq_num, void *arg);
Dapic.c548 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/
Dsyscall.rs459 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()
DVFS.h190 … (*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/
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.8/docs/kernel/process_management/
Dkthread.md23 &emsp;&emsp;`kthread_create(thread_fn, data, name_fmt, arg...)`
45 **arg**
/DragonOS-0.1.8/kernel/src/smp/
Dipi.h37 extern int ipi_regiserIPI(uint64_t irq_num, void *arg,
/DragonOS-0.1.8/kernel/src/process/
Dprocess.c176 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()
Dprocess.h146 pid_t kernel_thread(int (*fn)(void *), void *arg, unsigned long flags);
/DragonOS-0.1.8/kernel/src/driver/keyboard/
Dps2_keyboard.c78 …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/
Dmod.rs974 let arg = args[2] as i32; in handle() localVariable
976 Self::fcntl(fd, cmd, arg) in handle()

12