Home
last modified time | relevance | path

Searched refs:head (Results 1 – 11 of 11) sorted by relevance

/DragonOS/docs/kernel/core_api/
H A Dkernel_api.md217 ### `list_for_each(ptr, head)`
229 **head**
233 ### `list_for_each_prev(ptr, head)` argument
244 ### `list_for_each_safe(ptr, n, head)` argument
262 **head**
266 ### `list_for_each_prev_safe(ptr, n, head)` argument
279 ### `list_for_each_entry(pos, head, member)`
291 **head** argument
299 ### `list_for_each_entry_reverse(pos, head, member)`
309 ### `list_for_each_entry_safe(pos, n, head, member)` argument
[all …]
/DragonOS/kernel/crates/rust-slabmalloc/src/
H A Dpages.rs343 pub(crate) head: Option<&'a mut T>, field
352 head: None, in new()
360 head: None, in new()
366 let m = match self.head { in iter_mut()
372 head: m, in iter_mut()
379 match self.head { in insert_front()
382 self.head = Some(new_head); in insert_front()
384 Some(ref mut head) => { in insert_front()
386 *head.prev() = Rawlink::some(new_head); in insert_front()
387 mem::swap(head, &mut new_head); in insert_front()
[all …]
H A Dsc.rs277 if ptr.is_null() && self.empty_slabs.head.is_some() { in allocate()
/DragonOS/user/apps/test-for-robustfutex/src/
H A Dmain.rs193 let head = RobustListHead { in set_list() localVariable
198 let head = NonNull::from(&head).as_ptr(); in set_list() localVariable
201 let head_ref_mut = &mut *head; in set_list()
214 let ret = syscall2(set_robust_list, head as usize, len); in set_list()
234 let head = RobustListHead { in test01() localVariable
239 let head = NonNull::from(&head).as_ptr(); in test01() localVariable
267 println!("robust list next(get behind): {:?}", &unsafe { *head }); in test01()
270 let head_ref_mut = &mut *head; in test01()
275 println!("robust list next addr: {:?}", (*head).list.next); in test01()
278 (*(*head).list.next).next in test01()
[all …]
/DragonOS/kernel/src/libs/
H A Drbtree.rs599 head: NodePtr<K, V>, field
620 if self.head.is_null() { in next()
624 let next = self.head.next(); in next()
627 core::ptr::read(&(*self.head.0).key), in next()
628 core::ptr::read(&(*self.head.0).value), in next()
631 self.head = next; in next()
678 head: NodePtr<K, V>, field
687 head: self.head, in clone()
703 if self.head.is_null() { in next()
707 let (k, v) = unsafe { (&(*self.head.0).key, &(*self.head.0).value) }; in next()
[all …]
/DragonOS/kernel/src/driver/tty/tty_ldisc/
H A Dntty.rs285 let mut head = ntty_buf_mask(self.read_head); in receive_buf_real_raw() localVariable
286 let mut n = count.min(NTTY_BUFSIZE - head); in receive_buf_real_raw()
289 self.read_buf[head..(head + n)].copy_from_slice(&buf[0..n]); in receive_buf_real_raw()
295 head = ntty_buf_mask(self.read_head); in receive_buf_real_raw()
296 n = count.min(NTTY_BUFSIZE - head); in receive_buf_real_raw()
297 self.read_buf[head..(head + n)].copy_from_slice(&buf[offset..(offset + n)]); in receive_buf_real_raw()
613 let mut head; in eraser() localVariable
616 head = self.read_head; in eraser()
620 head -= 1; in eraser()
621 c = self.read_buf[ntty_buf_mask(head)]; in eraser()
[all …]
/DragonOS/user/apps/about/
H A DMakefile8 GIT_COMMIT_SHA1=$(shell git log -n 1 | head -n 1 | cut -d ' ' -f 2 | cut -c1-8)
/DragonOS/user/
H A DMakefile33 ifneq ($(shell printf '%s\n%s' "$(DADK_VERSION)" "$(MIN_DADK_VERSION)" | sort -V | head -n1), $(MIN…
/DragonOS/docs/kernel/sched/
H A Dc_waiting.md120 | wait_queue_sleep_with_node(wait_queue_head_t *head, wait_queue_node_t *wait_node) | …
/DragonOS/kernel/src/syscall/
H A Dmod.rs753 let head = args[0]; in handle() localVariable
754 let head_uaddr = VirtAddr::new(head); in handle()
763 let head = args[1]; in handle() localVariable
764 let head_uaddr = VirtAddr::new(head); in handle()
/DragonOS/kernel/src/libs/futex/
H A Dfutex.rs747 let head = match *pcb.get_robust_list() { in exit_robust_list() localVariable
754 for futex_uaddr in head.futexes() { in exit_robust_list()