Home
last modified time | relevance | path

Searched defs:ptr (Results 1 – 25 of 28) sorted by relevance

12

/DragonOS/kernel/src/common/
H A Derr.h15 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 Dglib.h25 #define container_of(ptr, type, member) \ argument
/DragonOS/docs/kernel/core_api/
H A Dkernel_api.md131 #### 描
135 #### 参
151 #### 描
155 #### 参
161 #### 描
165 #### 参
171 #### 描
175 #### 参
181 #### 描
185 #### 参
[all …]
/DragonOS/kernel/crates/rust-slabmalloc/src/
H A Dsc.rs201 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 Dcmpxchg.c3 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 Dparam.rs200 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 Dcmpxchg.h80 #define arch_try_cmpxchg(ptr, old_ptr, new) \ argument
/DragonOS/kernel/src/arch/riscv64/
H A Dcpu.rs19 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 Dverifier.rs53 let ptr = match src_reg as u32 { in relocation() localVariable
/DragonOS/kernel/src/arch/riscv64/init/
H A Dmod.rs67 let ptr = handle_exception as *const () as usize; in setup_trap_vector() localVariable
/DragonOS/kernel/src/process/
H A Dfork.rs491 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 Dkthread.rs223 let ptr = Arc::into_raw(self); in generate_unsafe_arc_ptr() localVariable
/DragonOS/kernel/src/libs/
H A Dalign.rs53 let ptr = unsafe { KERNEL_ALLOCATOR.alloc_zeroed(Self::LAYOUT) }; in new_zeroed() localVariable
/DragonOS/kernel/src/mm/allocator/
H A Dkernel_allocator.rs84 let ptr: *mut u8 = x.as_mut_ptr(); in local_alloc_zeroed() localVariable
/DragonOS/kernel/src/arch/x86_64/smp/
H A Dmod.rs273 let ptr = vaddr.data() as *mut u64; in arch_init() localVariable
/DragonOS/kernel/src/arch/x86_64/driver/
H A Dhpet.rs94 let ptr = NonNull::new(mmio.vaddr().data() as *mut HpetRegisters).unwrap(); in new() localVariable
/DragonOS/kernel/src/filesystem/kernfs/
H A Dmod.rs76 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 Dfutex.rs164 ptr: u64, field
619 let ptr = atomic_addr.as_ptr(); in arch_futex_atomic_op_inuser() localVariable
/DragonOS/kernel/src/filesystem/vfs/
H A Dmount.rs86 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 Dfile.rs472 let ptr = &mut dirent.d_name as *mut u8; in readdir() localVariable
/DragonOS/kernel/src/arch/riscv64/process/
H A Dmod.rs318 let ptr = VirtAddr::new(sp); in arch_current_pcb() localVariable
/DragonOS/kernel/src/arch/x86_64/process/
H A Dmod.rs271 let ptr = VirtAddr::new(x86::current::registers::rsp() as usize); in arch_current_pcb() localVariable
/DragonOS/kernel/src/perf/
H A Dbpf.rs38 ptr: usize, field
/DragonOS/kernel/src/driver/virtio/
H A Dtransport_pci.rs553 let ptr = get_bar_region::<T>(device_bar, struct_info)?; in get_bar_region_slice() localVariable
/DragonOS/kernel/crates/rbpf/src/
H A Dlib.rs1776 let ptr = prog.as_ptr(); in drop() localVariable

12