Home
last modified time | relevance | path

Searched refs:list (Results 1 – 25 of 54) sorted by relevance

123

/DragonOS-0.1.8/docs/userland/libc/apis/
Dindex.rst7 api-list/ctype
8 api-list/dirent
9 api-list/errno
10 api-list/fcntl
11 api-list/math
12 api-list/stdio
13 api-list/printf
14 api-list/stddef
15 api-list/stdlib
16 api-list/string
[all …]
/DragonOS-0.1.8/kernel/src/libs/
Dlist.rs5 pub fn list_init(list: *mut List) { in list_init()
6 unsafe { *list }.prev = list; in list_init()
7 unsafe { *list }.next = list; in list_init()
Dmutex.c50 list_init(&waiter->list); in mutex_lock()
51 list_append(&lock->wait_list, &waiter->list); in mutex_lock()
81 wt = container_of(list_next(&lock->wait_list), struct mutex_waiter_t, list); in mutex_unlock()
85 list_del(&wt->list); in mutex_unlock()
Dmod.rs10 pub mod list; module
/DragonOS-0.1.8/kernel/src/driver/virtio/
Dvirtio.rs29 let mut list = PCI_DEVICE_LINKEDLIST.write(); in virtio_probe() localVariable
30 if let Ok(virtio_list) = virtio_device_search(&mut list) { in virtio_probe()
75 list: &'a mut RwLockWriteGuard<'_, LinkedList<Box<dyn PciDeviceStructure>>>, in virtio_device_search()
78 let virtio_net_device = get_virtio_net_device(list)?; in virtio_device_search()
87 list: &'a mut RwLockWriteGuard<'_, LinkedList<Box<dyn PciDeviceStructure>>>, in get_virtio_net_device()
89 let result = get_pci_device_structure_mut(list, NETWORK_CLASS, ETHERNET_SUBCLASS); in get_virtio_net_device()
/DragonOS-0.1.8/kernel/src/arch/
DMakefile9 @list='$(kernel_arch_subdirs)'; for subdir in $$list; do \
/DragonOS-0.1.8/user/libs/
DMakefile15 @list='$(user_libs_sub_dirs)'; for subdir in $$list; do \
/DragonOS-0.1.8/kernel/src/libs/libUI/
Dscreen_manager.c141 list_init(&ui->list); in scm_register_alloc()
155 list_add(&scm_framework_list, &ui->list); in scm_register_alloc()
178 list_init(&ui->list); in scm_register()
189 list_add(&scm_framework_list, &ui->list); in scm_register()
248 …i_framework_t *ptr = container_of(list_next(&scm_framework_list), struct scm_ui_framework_t, list); in scm_enable_double_buffer()
268 } while (list_next(&ptr->list) != &scm_framework_list); // 枚举链表的每一个ui框架 in scm_enable_double_buffer()
342 …i_framework_t *ptr = container_of(list_next(&scm_framework_list), struct scm_ui_framework_t, list); in scm_reinit()
349 } while (list_next(&ptr->list) != &scm_framework_list); in scm_reinit()
Dscreen_manager.h44 struct List list; member
Dtextui.h94 struct List list; member
/DragonOS-0.1.8/kernel/src/time/
Dclocksource.rs407 let mut list = WATCHDOG_LIST.lock(); in clocksource_dequeue_watchdog() localVariable
408 let mut size = list.len(); in clocksource_dequeue_watchdog()
411 for (pos, ele) in list.iter().enumerate() { in clocksource_dequeue_watchdog()
425 let mut temp_list = list.split_off(del_pos); in clocksource_dequeue_watchdog()
427 list.append(&mut temp_list); in clocksource_dequeue_watchdog()
435 for ele in list.iter() { in clocksource_dequeue_watchdog()
475 let mut temp_list = list.split_off(del_pos); in clocksource_dequeue_watchdog()
477 list.append(&mut temp_list); in clocksource_dequeue_watchdog()
488 size = list.len(); in clocksource_dequeue_watchdog()
495 let mut list = CLOCKSOURCE_LIST.lock(); in clocksource_dequeue() localVariable
[all …]
/DragonOS-0.1.8/user/libs/libc/src/
DMakefile29 @list='$(libc_sub_dirs)'; for subdir in $$list; do \
/DragonOS-0.1.8/kernel/src/process/
Dkthread.c35 struct List list; member
64 list_init(&create->list); in __kthread_create_on_node()
67 list_append(&kthread_create_list, &create->list); in __kthread_create_on_node()
238 container_of(kthread_create_list.next, struct kthread_create_info_t, list); in kthreadd()
239 list_del_init(&create->list); in kthreadd()
Dproc-types.h94 struct List list; member
/DragonOS-0.1.8/docs/kernel/memory_management/
Dmmio.md93 │ │ │ list │ │ │ vaddr │ │ vaddr │ │
141 list: LinkedList<Box<MmioBuddyAddrRegion>>,
158 …的内存块,其$exp = 12$,使用上述公式计算得$index = 12 -12 = 0$,所以该内存块会被存入`free_regions[0].list`中。通过上述换算公式,每次取出或释放$…
160 …的空闲内存块链表(MmioFreeRegionList),`MmioFreeRegionList`中封装有真正的存储了空闲内存块信息的结构体的链表(list)和对应链表长度(num_free)。有…
/DragonOS-0.1.8/kernel/src/common/
Dlist.h14 static inline void list_init(struct List *list) in list_init() argument
16 list->next = list; in list_init()
18 list->prev = list; in list_init()
Dmutex.h30 struct List list; member
/DragonOS-0.1.8/kernel/src/mm/
Dmmio_buddy.rs319 list_guard.list.push_back(region); in push_block()
347 if list_guard.list.len() == 0 { in pop_buddy_block()
355 .list in pop_buddy_block()
379 if !list_guard.list.is_empty() { in pop_block()
381 return Ok(list_guard.list.pop_back().unwrap()); in pop_block()
414 let vaddr: VirtAddr = list_guard.list.back().unwrap().vaddr; in merge_all_exp()
421 let region: MmioBuddyAddrRegion = list_guard.list.pop_back().unwrap(); in merge_all_exp()
586 list: LinkedList<MmioBuddyAddrRegion>, field
601 list: Default::default(), in default()
/DragonOS-0.1.8/kernel/src/driver/pci/
Dpci.c20 list_add(pci_device_structure_list, &(ret->header.list)); \
25 list_init(&(ret->header.list)); \
26 pci_device_structure_list = &(ret->header.list); \
435 …eader_t *ptr = container_of(pci_device_structure_list, struct pci_device_structure_header_t, list); in pci_init()
469 ptr = container_of(list_next(&(ptr->list)), struct pci_device_structure_header_t, list); in pci_init()
485 …eader_t *ptr = container_of(pci_device_structure_list, struct pci_device_structure_header_t, list); in pci_get_device_structure()
497 ptr = container_of(list_next(&(ptr->list)), struct pci_device_structure_header_t, list); in pci_get_device_structure()
Dpci.rs72 list: RwLock<LinkedList<Box<dyn PciDeviceStructure>>>, field
79 list: RwLock::new(LinkedList::new()), in new()
85 self.list.read() in read()
90 self.list.write() in write()
95 let list = self.list.read(); in num() localVariable
96 list.len() in num()
100 let mut list = self.list.write(); in add() localVariable
101 list.push_back(device); in add()
111 list: &'a mut RwLockWriteGuard<'_, LinkedList<Box<dyn PciDeviceStructure>>>, in get_pci_device_structure_mut()
116 for box_pci_device_structure in list.iter_mut() { in get_pci_device_structure_mut()
[all …]
/DragonOS-0.1.8/kernel/src/
DMakefile79 @list='$(kernel_subdirs)'; for subdir in $$list; do \
/DragonOS-0.1.8/
DMakefile58 @list='$(SUBDIRS)'; for subdir in $$list; do \
/DragonOS-0.1.8/tools/
Dbootstrap.sh54 $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
/DragonOS-0.1.8/kernel/src/ktest/
Dtest-mutex.c63 … struct mutex_waiter_t *wt = container_of(list_next(&mtx.wait_list), struct mutex_waiter_t, list); in ktest_mutex_case1()
/DragonOS-0.1.8/user/
DMakefile110 @list='$(user_sub_dirs)'; for subdir in $$list; do \

123