/DragonOS-0.1.2/kernel/src/ipc/ ! |
D | pipe.c | 26 struct pipe_data_t data; member 38 spin_lock(&pipe_ptr->data.lock); in pipe_read() 39 while (pipe_ptr->data.valid_cnt == 0) in pipe_read() 43 wait_queue_wakeup(&pipe_ptr->data.write_wait_queue, PROC_UNINTERRUPTIBLE); in pipe_read() 44 wait_queue_sleep_on_unlock(&pipe_ptr->data.read_wait_queue, (void *)&pipe_ptr->data.lock); in pipe_read() 45 spin_lock(&pipe_ptr->data.lock); in pipe_read() 47 for (i = 0; i < pipe_ptr->data.valid_cnt; i++) in pipe_read() 53 copy_to_user(buf + i, &pipe_ptr->buf[pipe_ptr->data.read_pos], sizeof(char)); in pipe_read() 54 pipe_ptr->data.read_pos = (pipe_ptr->data.read_pos + 1) % PIPE_BUFF_SIZE; in pipe_read() 56 pipe_ptr->data.valid_cnt = pipe_ptr->data.valid_cnt - i; in pipe_read() [all …]
|
D | signal_types.rs | 159 pub data: __siginfo_union_data, 196 data: __siginfo_union_data { in new() 215 self._sinfo.data.si_signo, in fmt() 216 self._sinfo.data.si_code, in fmt() 217 self._sinfo.data.si_errno, in fmt() 218 self._sinfo.data._sifields._kill._pid in fmt() 488 if unsafe { x._sinfo.data.si_signo } == sig as i32 { in find() 509 if unsafe { x._sinfo.data.si_signo } == sig as i32 { in find_and_delete() 535 if sig_is_member(mask, SignalNumber::from(unsafe { x._sinfo.data.si_signo })) { in flush_by_mask()
|
/DragonOS-0.1.2/kernel/src/driver/hid/ ! |
D | hidparse.c | 84 parser->data.report_id = 1; // we must give it a non-zero value or the parser doesn't work in hid_reset_parser() 113 static bool hid_parse(struct hid_parser *parser, struct hid_data_t *data) in hid_parse() argument 186 parser->data.path.node[parser->data.path.size].u_page = parser->usage_table[0].u_page; in hid_parse() 187 parser->data.path.node[parser->data.path.size].usage = parser->usage_table[0].usage; in hid_parse() 188 ++parser->data.path.size; in hid_parse() 197 parser->data.path.node[parser->data.path.size].u_page = 0xff; in hid_parse() 198 parser->data.path.node[parser->data.path.size].usage = parser->value & 0x7f; in hid_parse() 199 ++parser->data.path.size; in hid_parse() 208 --parser->data.path.size; // 为什么要--????? in hid_parse() 210 if (parser->data.path.node[parser->data.path.size].u_page == 0xff) in hid_parse() [all …]
|
/DragonOS-0.1.2/kernel/src/driver/multiboot2/ ! |
D | multiboot2.c | 22 void *data, unsigned int *count) in multiboot2_iter() argument 32 if (_fun(tag, data, count) == true) in multiboot2_iter() 58 bool multiboot2_get_memory(const struct iter_data_t *_iter_data, void *data, unsigned int *count) in multiboot2_get_memory() argument 63 struct multiboot_mmap_entry_t *resource = (struct multiboot_mmap_entry_t *)data; in multiboot2_get_memory() 83 bool multiboot2_get_VBE_info(const struct iter_data_t *_iter_data, void *data, unsigned int *reserv… in multiboot2_get_VBE_info() argument 88 *(struct multiboot_tag_vbe_t *)data = *(struct multiboot_tag_vbe_t *)_iter_data; in multiboot2_get_VBE_info() 98 bool multiboot2_get_Framebuffer_info(const struct iter_data_t *_iter_data, void *data, unsigned int… in multiboot2_get_Framebuffer_info() argument 102 …*(struct multiboot_tag_framebuffer_info_t *)data = *(struct multiboot_tag_framebuffer_info_t *)_it… in multiboot2_get_Framebuffer_info() 114 bool multiboot2_get_acpi_old_RSDP(const struct iter_data_t *_iter_data, void *data, unsigned int *r… in multiboot2_get_acpi_old_RSDP() argument 119 *(struct multiboot_tag_old_acpi_t *)data = *(struct multiboot_tag_old_acpi_t *)_iter_data; in multiboot2_get_acpi_old_RSDP() [all …]
|
D | multiboot2.h | 464 bool multiboot2_get_acpi_old_RSDP(const struct iter_data_t *_iter_data, void *data, unsigned int *r… 474 bool multiboot2_get_acpi_new_RSDP(const struct iter_data_t *_iter_data, void *data, unsigned int *r…
|
/DragonOS-0.1.2/kernel/src/time/ ! |
D | timer.h | 19 void do_timer_softirq(void *data); 29 void (*func)(void *data); 30 void *data; member 42 void timer_func_init(struct timer_func_list_t *timer_func, void (*func)(void *data), void *data, ui… 52 void timer_func_init_us(struct timer_func_list_t *timer_func, void (*func)(void *data), void *data,…
|
D | timer.c | 40 void do_timer_softirq(void *data) in do_timer_softirq() argument 50 tmp->func(tmp->data); in do_timer_softirq() 75 void timer_func_init(struct timer_func_list_t *timer_func, void (*func)(void *data), void *data, ui… in timer_func_init() argument 79 timer_func->data = data; in timer_func_init() 91 void timer_func_init_us(struct timer_func_list_t *timer_func, void (*func)(void *data), void *data,… in timer_func_init_us() argument 95 timer_func->data = data; in timer_func_init_us()
|
/DragonOS-0.1.2/kernel/src/common/ ! |
D | kthread.h | 18 void *data; member 24 struct process_control_block *kthread_create_on_node(int (*thread_fn)(void *data), 25 void *data, 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) 49 #define kthread_run(thread_fn, data, name_fmt, ...) … argument 51 … struct process_control_block *__kt = kthread_create(thread_fn, data, name_fmt, ##__VA_ARGS__); \
|
D | completion.h | 45 int __test_completion_waiter(void *data); // 等待者 46 int __test_completion_worker(void *data); // 执行者
|
D | hid.h | 134 struct hid_data_t data; // 存储当前的环境 member 166 bool hid_parse_find_object(const void *hid_report, const int report_size, struct hid_data_t *data);
|
/DragonOS-0.1.2/kernel/src/exception/ ! |
D | softirq.h | 35 void (*action)(void *data); // 软中断处理函数 36 void *data; member 48 void register_softirq(uint32_t irq_num, void (*action)(void *data), void *data);
|
D | softirq.c | 58 void register_softirq(uint32_t irq_num, void (*action)(void *data), void *data) in register_softirq() argument 61 softirq_vector[irq_num].data = data; in register_softirq() 72 softirq_vector[irq_num].data = NULL; in unregister_softirq() 99 softirq_vector[i].action(softirq_vector[i].data); in do_softirq()
|
/DragonOS-0.1.2/kernel/src/process/ ! |
D | kthread.c | 27 int (*thread_fn)(void *data); 28 void *data; member 50 …process_control_block *__kthread_create_on_node(int (*thread_fn)(void *data), void *data, int node, in __kthread_create_on_node() argument 61 create->data = data; in __kthread_create_on_node() 137 struct process_control_block *kthread_create_on_node(int (*thread_fn)(void *data), void *data, int … in kthread_create_on_node() argument 143 pcb = __kthread_create_on_node(thread_fn, data, node, name_fmt, args); in kthread_create_on_node() 157 int (*thread_fn)(void *data) = create->thread_fn; in kthread() 158 void *data = create->data; in kthread() local 165 self->data = data; in kthread() 186 retval = thread_fn(data); in kthread()
|
/DragonOS-0.1.2/kernel/src/ ! |
D | link.lds | 18 head.o(.bootstrap.data) 35 .data (data_start_pa): AT(data_start_pa - KERNEL_VMA) 38 *(.data) 57 .data.init_proc_union (init_proc_union_start_pa): AT(init_proc_union_start_pa - KERNEL_VMA) 58 { *(.data.init_proc_union) }
|
/DragonOS-0.1.2/kernel/src/sched/ ! |
D | completion.c | 223 struct __test_data *data = (struct __test_data *)input_data; in __test_completion_waiter() local 226 if (!try_wait_for_completion(data->one_to_many)) in __test_completion_waiter() 228 wait_for_completion(data->one_to_many); in __test_completion_waiter() 232 if (!try_wait_for_completion(data->one_to_many)) in __test_completion_waiter() 234 wait_for_completion(data->one_to_many); in __test_completion_waiter() 238 complete(data->many_to_one); in __test_completion_waiter() 252 struct __test_data *data = (struct __test_data *)input_data; in __test_completion_worker() local 255 if (!try_wait_for_completion(data->one_to_many)) in __test_completion_worker() 257 wait_for_completion(data->one_to_many); in __test_completion_worker() 263 complete(data->one_to_one); in __test_completion_worker() [all …]
|
/DragonOS-0.1.2/user/apps/about/ ! |
D | about.lds | 22 .data : 25 *(.data) argument
|
/DragonOS-0.1.2/user/apps/test_signal/ ! |
D | link.lds | 22 .data : 25 *(.data) argument
|
/DragonOS-0.1.2/user/apps/shell/ ! |
D | shell.lds | 22 .data : 25 *(.data) argument
|
/DragonOS-0.1.2/docs/kernel/boot/ ! |
D | multiboot2.md | 23 void *data, unsigned int *count) 32 **data** 38   当返回的**data**为一个列表时,通过该值来指示列表中有多少项。
|
/DragonOS-0.1.2/tools/ ! |
D | build_in_docker.sh | 4 docker run --rm --privileged=true --cap-add SYS_ADMIN --cap-add MKNOD -v $p:/data -v /dev:/dev -v d… 6 cd /data
|
/DragonOS-0.1.2/docs/kernel/process_management/ ! |
D | kthread.md | 23   `kthread_create(thread_fn, data, name_fmt, arg...)` 37 **data** 57   `kthread_run(thread_fn, data, name_fmt, ...)`
|
/DragonOS-0.1.2/kernel/src/arch/x86_64/ ! |
D | ia64_msi.c | 25 …msi_desc->msg.data = ia64_pci_get_arch_msi_message_data(msi_desc->irq_num, msi_desc->processor, ms… in msi_arch_get_msg()
|
/DragonOS-0.1.2/kernel/src/driver/pci/ ! |
D | msi.h | 12 uint32_t data; member
|
/DragonOS-0.1.2/kernel/src/driver/video/ ! |
D | video.c | 83 void video_refresh_framebuffer(void *data) in video_refresh_framebuffer() argument
|
/DragonOS-0.1.2/kernel/src/filesystem/procfs/ ! |
D | procfs.c | 146 uint64_t hiwater_vm, text, data; in procfs_open() local 149 data = pcb_t->mm->data_addr_end - pcb_t->mm->data_addr_start; in procfs_open() 155 data_puts(fdata, ltoa(data)); in procfs_open()
|