/DragonOS-0.1.8/kernel/src/libs/ |
D | rbtree.rs | 94 let node = RBTreeNode { in new() localVariable 102 NodePtr(Box::into_raw(Box::new(node))) in new() 274 let mut node = NodePtr::new((*self.0).key.clone(), (*self.0).value.clone()); in deep_clone() localVariable 276 node.set_left(self.left().deep_clone()); in deep_clone() 277 node.left().set_parent(node); in deep_clone() 280 node.set_right(self.right().deep_clone()); in deep_clone() 281 node.right().set_parent(node); in deep_clone() 283 node in deep_clone() 378 fn tree_print(&self, node: NodePtr<K, V>, direction: i32) { in tree_print() 379 if node.is_null() { in tree_print() [all …]
|
D | bitree.c | 20 struct bt_root_t *bt_create_tree(struct bt_node_t *node, int (*cmp)(void *a, void *b), int (*releas… in bt_create_tree() argument 22 if (node == NULL || cmp == NULL) in bt_create_tree() 27 root->bt_node = node; in bt_create_tree() 30 root->size = (node == NULL) ? 0 : 1; in bt_create_tree() 45 struct bt_node_t *node = (struct bt_node_t *)kmalloc(sizeof(struct bt_node_t), 0); in bt_create_node() local 46 FAIL_ON_TO(node == NULL, nomem); in bt_create_node() 47 memset((void *)node, 0, sizeof(struct bt_node_t)); in bt_create_node() 49 node->left = left; in bt_create_node() 50 node->right = right; in bt_create_node() 51 node->value = value; in bt_create_node() [all …]
|
/DragonOS-0.1.8/kernel/src/common/ |
D | list.h | 27 static inline void list_add(struct List *entry, struct List *node) in list_add() argument 30 node->next = entry->next; in list_add() 32 node->prev = entry; in list_add() 34 node->next->prev = node; in list_add() 36 entry->next = node; in list_add() 44 static inline void list_append(struct List *entry, struct List *node) in list_append() argument 48 list_add(tail, node); in list_append()
|
D | bitree.h | 33 struct bt_root_t *bt_create_tree(struct bt_node_t *node, int (*cmp)(void *a, void *b), int (*releas…
|
D | kthread.h | 24 …t process_control_block *kthread_create_on_node(int (*thread_fn)(void *data), void *data, int node,
|
D | hid.h | 92 struct hid_node_t node[HID_MAX_PATH_SIZE]; member
|
/DragonOS-0.1.8/kernel/src/process/ |
D | kthread.c | 29 int node; member 50 …process_control_block *__kthread_create_on_node(int (*thread_fn)(void *data), void *data, int node, in __kthread_create_on_node() argument 62 create->node = node; in __kthread_create_on_node() 138 …t process_control_block *kthread_create_on_node(int (*thread_fn)(void *data), void *data, int node, in kthread_create_on_node() argument 144 pcb = __kthread_create_on_node(thread_fn, data, node, name_fmt, args); in kthread_create_on_node()
|
/DragonOS-0.1.8/kernel/src/mm/allocator/ |
D | slab.rs | 87 let block = self.head.take().map(|node| { in pop() 88 self.head = node.next.take(); in pop() 90 node in pop()
|
/DragonOS-0.1.8/kernel/src/driver/hid/ |
D | hidparse.c | 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() 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() 210 if (parser->data.path.node[parser->data.path.size].u_page == 0xff) in hid_parse() 233 parser->data.path.node[parser->data.path.size].u_page = parser->usage_table[0].u_page; in hid_parse() 234 parser->data.path.node[parser->data.path.size].usage = parser->usage_table[0].usage; in hid_parse() 529 found_data.report_id, found_data.path.node[0].u_page, found_data.path.node[0].usage); in __find_object() 532 … (memcmp(found_data.path.node, data->path.node, data->path.size * sizeof(struct hid_node_t)) == 0)) in __find_object()
|
/DragonOS-0.1.8/docs/kernel/core_api/ |
D | kernel_api.md | 19 ### `void list_add(struct List *entry, struct List *node)` 23   将node插入到entry的后方 31 **node** 35 ### `void list_append(struct List *entry, struct List *node)` argument 39   将node插入到entry的前方 47 **node**
|
/DragonOS-0.1.8/docs/kernel/process_management/ |
D | kthread.md | 27   在当前NUMA结点上创建一个内核线程(DragonOS目前暂不支持NUMA,因此node可忽略。)
|