Home
last modified time | relevance | path

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

123

/DragonOS/user/apps/
H A DMakefile5 @list='$(sub_dirs)'; for subdir in $$list; do \
11 @list='$(sub_dirs)'; for subdir in $$list; do \
/DragonOS/kernel/src/debug/kprobe/
H A Dmod.rs49 let list = self.break_list.entry(address).or_default(); in insert_break_point() localVariable
50 list.push(kprobe); in insert_break_point()
59 let list = self.debug_list.entry(address).or_default(); in insert_debug_point() localVariable
60 list.push(kprobe); in insert_debug_point()
83 .map(|list| list.len()) in break_list_len()
90 .map(|list| list.len()) in debug_list_len()
112 if let Some(list) = self.break_list.get_mut(&address) { in remove_one_break()
113 list.retain(|x| !Arc::ptr_eq(x, kprobe)); in remove_one_break()
128 if let Some(list) = self.debug_list.get_mut(&address) { in remove_one_debug()
129 list.retain(|x| !Arc::ptr_eq(x, kprobe)); in remove_one_debug()
/DragonOS/kernel/src/driver/disk/ahci/
H A Dmod.rs38 list: &PciDeviceLinkedList, in ahci_device_search()
40 let result = get_pci_device_structure_mut(list, AHCI_CLASS, AHCI_SUBCLASS); in ahci_device_search()
51 let list = &*PCI_DEVICE_LINKEDLIST; in ahci_init() localVariable
52 let ahci_device = ahci_device_search(list)?; in ahci_init()
138 let list: SpinLockGuard<Vec<&mut HbaMem>> = LOCKED_HBA_MEM_LIST.lock(); in _port() localVariable
139 let port: &HbaPort = &list[ctrl_num as usize].ports[port_num as usize]; in _port()
/DragonOS/user/apps/test-for-robustfutex/src/
H A Dmain.rs86 list: RobustList, field
194 list: RobustList { next: ptr::null() }, in set_list()
202 head_ref_mut.list.next = futexes.get_addr(0) as *const RobustList; in set_list()
205 let list_2 = NonNull::from(&*head_ref_mut.list.next).as_ptr(); in set_list()
235 list: RobustList { next: ptr::null() }, in test01()
271 head_ref_mut.list.next = futexes.offset(0) as *const RobustList; in test01()
272 let list_2 = NonNull::from(&*head_ref_mut.list.next).as_ptr(); in test01()
275 println!("robust list next addr: {:?}", (*head).list.next); in test01()
278 (*(*head).list.next).next in test01()
/DragonOS/kernel/src/time/
H A Dclocksource.rs526 let mut list = WATCHDOG_LIST.lock_irqsave(); in clocksource_dequeue_watchdog() localVariable
527 let mut size = list.len(); in clocksource_dequeue_watchdog()
530 for (pos, ele) in list.iter().enumerate() { in clocksource_dequeue_watchdog()
544 let mut temp_list = list.split_off(del_pos); in clocksource_dequeue_watchdog()
546 list.append(&mut temp_list); in clocksource_dequeue_watchdog()
554 for ele in list.iter() { in clocksource_dequeue_watchdog()
594 let mut temp_list = list.split_off(del_pos); in clocksource_dequeue_watchdog()
596 list.append(&mut temp_list); in clocksource_dequeue_watchdog()
607 size = list.len(); in clocksource_dequeue_watchdog()
614 let mut list = CLOCKSOURCE_LIST.lock(); in clocksource_dequeue() localVariable
[all …]
/DragonOS/docs/kernel/memory_management/
H A 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/user/
H A DMakefile64 @list='$(user_sub_dirs)'; for subdir in $$list; do \
/DragonOS/docs/kernel/debug/
H A Ddebug-kernel-with-gdb.md327 list #或者l,显示当前活动源文件源代码的片段,以及当前执行的位置。
328 list <filename>:<function> #显示<filename>文件里面的<funtion>函数的源代码片段
329 list <filename>:<line_number> #显示<filename>文件里面的<line_number>附近的源代码片段
330 list <first>,<last> #显示当前活动源文件的<first>至<last>之间的源代码片段
331 set listsize <count> #设置list命令显示的源代码行数。默认情况下,list命令显示当前行和其周围的几行代码。
342 show listsize #显示打印源代码时的上下文行数。它确定了在使用list命令(或其简写形式l)时显示的源代码行数。
/DragonOS/kernel/src/driver/pci/
H A Dpci.rs71 list: RwLock<LinkedList<Arc<dyn PciDeviceStructure>>>, field
78 list: RwLock::new(LinkedList::new()), in new()
84 self.list.read() in read()
89 self.list.write() in write()
94 let list = self.list.read(); in num() localVariable
95 list.len() in num()
99 let mut list = self.list.write(); in add() localVariable
100 list.push_back(device); in add()
117 list: &PciDeviceLinkedList, in get_pci_device_structures_mut_by_vendor_id()
121 for box_pci_device_structure in list.write().iter() { in get_pci_device_structures_mut_by_vendor_id()
[all …]
/DragonOS/kernel/src/mm/
H A Dmmio_buddy.rs328 list_guard.list.push_back(region); in push_block()
356 if list_guard.list.is_empty() { in pop_buddy_block()
364 .list in pop_buddy_block()
388 if !list_guard.list.is_empty() { in pop_block()
390 return Ok(list_guard.list.pop_back().unwrap()); in pop_block()
423 let vaddr: VirtAddr = list_guard.list.back().unwrap().vaddr; in merge_all_exp()
430 let region: MmioBuddyAddrRegion = list_guard.list.pop_back().unwrap(); in merge_all_exp()
598 list: LinkedList<MmioBuddyAddrRegion>, field
/DragonOS/kernel/src/driver/virtio/
H A Dvirtio.rs88 let list = &*PCI_DEVICE_LINKEDLIST; in virtio_device_search() localVariable
90 let result = get_pci_device_structures_mut_by_vendor_id(list, 0x1AF4); in virtio_device_search()
/DragonOS/kernel/src/process/
H A Dkthread.rs463 let mut list = KTHREAD_CREATE_LIST.lock(); in kthread_daemon() localVariable
464 while let Some(info) = list.pop_front() { in kthread_daemon()
465 drop(list); in kthread_daemon()
476 list = KTHREAD_CREATE_LIST.lock(); in kthread_daemon()
478 drop(list); in kthread_daemon()
/DragonOS/
H A DMakefile54 @list='$(SUBDIRS)'; for subdir in $$list; do \
/DragonOS/docs/kernel/core_api/
H A Dkernel_api.md5 &emsp;&emsp;循环链表是内核的重要的数据结构之一。包含在`kernel/common/list.h`中。
7 ### `void list_init(struct List *list)`
15 **list**
147 &emsp;&emsp;List结构体在上述的“包裹list结构体的结构体”中的变量名
/DragonOS/kernel/src/
H A DMakefile125 @list='$(kernel_subdirs)'; for subdir in $$list; do \
/DragonOS/kernel/src/bpf/prog/
H A Dmod.rs95 fn list(&self) -> Result<Vec<String>> { in list() method
/DragonOS/kernel/src/filesystem/overlayfs/
H A Dmod.rs310 fn list(&self) -> Result<Vec<String>, system_error::SystemError> { in list() method
314 let upper_entries = upper_inode.list()?; in list()
318 let lower_entries = lower_inode.list()?; in list()
/DragonOS/kernel/src/filesystem/devfs/
H A Dnull_dev.rs95 fn list(&self) -> Result<Vec<String>, SystemError> { in list() method
H A Dzero_dev.rs95 fn list(&self) -> Result<Vec<String>, SystemError> { in list() method
/DragonOS/docs/kernel/locking/
H A Dmutex.md136 spinlock_t wait_lock; // mutex操作锁,用于对mutex的list的操作进行加锁
/DragonOS/kernel/src/perf/
H A Dkprobe.rs114 fn list(&self) -> Result<Vec<String>> { in list() method
/DragonOS/kernel/src/virt/kvm/
H A Dkvm_dev.rs114 fn list(&self) -> Result<Vec<String>, SystemError> { in list() method
H A Dvcpu_dev.rs122 fn list(&self) -> Result<Vec<String>, SystemError> { in list() method
/DragonOS/kernel/src/init/
H A Dcmdline.rs415 let list = match param_typ { in find_param() localVariable
421 list.iter().find(|x| { in find_param()
/DragonOS/kernel/src/libs/futex/
H A Dfutex.rs655 list: RobustList, field
837 entry: robust_list_head.list.next, in new()
855 while self.entry.data() != &self.robust_list_head.list as *const RobustList as usize { in next()

123