/DragonOS/kernel/src/common/ |
H A D | err.h | 15 static inline long __must_check IS_ERR(const void* ptr) in IS_ERR() 27 static inline long __must_check IS_ERR_OR_NULL(const void* ptr) in IS_ERR_OR_NULL() 43 static inline long __must_check PTR_ERR(void * ptr) in PTR_ERR()
|
H A D | glib.h | 25 #define container_of(ptr, type, member) \ argument
|
/DragonOS/docs/kernel/core_api/ |
H A D | kernel_api.md | 131 #### 描述 135 #### 参数 151 #### 描述 155 #### 参数 161 #### 描述 165 #### 参数 171 #### 描述 175 #### 参数 181 #### 描述 185 #### 参数 [all …]
|
/DragonOS/kernel/crates/rust-slabmalloc/src/ |
H A D | sc.rs | 201 let ptr = slab_page.allocate(sc_layout); in try_allocate_from_pagelist() localVariable 273 let ptr = { in allocate() localVariable 276 let ptr = self.try_allocate_from_pagelist(new_layout); in allocate() localVariable 282 let ptr = empty_page.allocate(layout); in allocate() localVariable
|
/DragonOS/kernel/src/arch/x86_64/asm/ |
H A D | cmpxchg.c | 3 bool __try_cmpxchg_q(uint64_t *ptr, uint64_t *old_ptr, uint64_t *new_ptr) in __try_cmpxchg_q()
|
/DragonOS/kernel/src/arch/x86_64/init/pvh/ |
H A D | param.rs | 200 let ptr = UNINIT.as_ptr(); in bindgen_test_layout_hvm_start_info() localVariable 316 let ptr = UNINIT.as_ptr(); in bindgen_test_layout_hvm_modlist_entry() localVariable 373 let ptr = UNINIT.as_ptr(); in bindgen_test_layout_hvm_memmap_table_entry() localVariable
|
/DragonOS/kernel/src/arch/x86_64/include/asm/ |
H A D | cmpxchg.h | 80 #define arch_try_cmpxchg(ptr, old_ptr, new) \ argument
|
/DragonOS/kernel/src/arch/riscv64/ |
H A D | cpu.rs | 19 let ptr: *const LocalContext = riscv::register::tp::read() as *const LocalContext; in current_cpu_id() localVariable 99 let ptr = self as *const Self as usize; in sync_to_cpu() localVariable
|
/DragonOS/kernel/src/bpf/prog/ |
H A D | verifier.rs | 53 let ptr = match src_reg as u32 { in relocation() localVariable
|
/DragonOS/kernel/src/arch/riscv64/init/ |
H A D | mod.rs | 67 let ptr = handle_exception as *const () as usize; in setup_trap_vector() localVariable
|
/DragonOS/kernel/src/process/ |
H A D | fork.rs | 491 let ptr = pcb.as_ref() as *const ProcessControlBlock as *mut ProcessControlBlock; in copy_process() localVariable 497 let ptr = pcb.as_ref() as *const ProcessControlBlock as *mut ProcessControlBlock; in copy_process() localVariable
|
H A D | kthread.rs | 223 let ptr = Arc::into_raw(self); in generate_unsafe_arc_ptr() localVariable
|
/DragonOS/kernel/src/libs/ |
H A D | align.rs | 53 let ptr = unsafe { KERNEL_ALLOCATOR.alloc_zeroed(Self::LAYOUT) }; in new_zeroed() localVariable
|
/DragonOS/kernel/src/mm/allocator/ |
H A D | kernel_allocator.rs | 84 let ptr: *mut u8 = x.as_mut_ptr(); in local_alloc_zeroed() localVariable
|
/DragonOS/kernel/src/arch/x86_64/smp/ |
H A D | mod.rs | 273 let ptr = vaddr.data() as *mut u64; in arch_init() localVariable
|
/DragonOS/kernel/src/arch/x86_64/driver/ |
H A D | hpet.rs | 94 let ptr = NonNull::new(mmio.vaddr().data() as *mut HpetRegisters).unwrap(); in new() localVariable
|
/DragonOS/kernel/src/filesystem/kernfs/ |
H A D | mod.rs | 76 let ptr = root_inode.as_ref() as *const KernFSInode as *mut KernFSInode; in new() localVariable 416 let ptr = inode.as_ref() as *const KernFSInode as *mut KernFSInode; in new() localVariable
|
/DragonOS/kernel/src/libs/futex/ |
H A D | futex.rs | 164 ptr: u64, field 619 let ptr = atomic_addr.as_ptr(); in arch_futex_atomic_op_inuser() localVariable
|
/DragonOS/kernel/src/filesystem/vfs/ |
H A D | mount.rs | 86 let ptr: *mut MountFS = mount_fs.as_ref() as *const Self as *mut Self; in wrap() localVariable 135 let ptr: *mut MountFSInode = inode.as_ref() as *const Self as *mut Self; in wrap() localVariable
|
H A D | file.rs | 472 let ptr = &mut dirent.d_name as *mut u8; in readdir() localVariable
|
/DragonOS/kernel/src/arch/riscv64/process/ |
H A D | mod.rs | 318 let ptr = VirtAddr::new(sp); in arch_current_pcb() localVariable
|
/DragonOS/kernel/src/arch/x86_64/process/ |
H A D | mod.rs | 271 let ptr = VirtAddr::new(x86::current::registers::rsp() as usize); in arch_current_pcb() localVariable
|
/DragonOS/kernel/src/perf/ |
H A D | bpf.rs | 38 ptr: usize, field
|
/DragonOS/kernel/src/driver/virtio/ |
H A D | transport_pci.rs | 553 let ptr = get_bar_region::<T>(device_bar, struct_info)?; in get_bar_region_slice() localVariable
|
/DragonOS/kernel/crates/rbpf/src/ |
H A D | lib.rs | 1776 let ptr = prog.as_ptr(); in drop() localVariable
|