Home
last modified time | relevance | path

Searched refs:length (Results 1 – 10 of 10) sorted by relevance

/DragonOS-0.1.8/user/libs/libc/src/
Dmalloc.c32 uint64_t length; // 整个块所占用的内存区域的大小 member
82 if (ptr->length == size) in malloc_query_free_chunk_bf()
88 if (ptr->length > size) in malloc_query_free_chunk_bf()
92 else if (best->length > ptr->length) in malloc_query_free_chunk_bf()
115 if (ptr->length >= size) in malloc_query_free_chunk_ff()
160 new_ck->length = brk_max_addr - brk_managed_addr; in malloc_enlarge()
183 if (((uint64_t)(ptr->prev) + ptr->prev->length == (uint64_t)ptr)) in malloc_merge_free_chunk()
187 ptr->prev->length += ptr->length; in malloc_merge_free_chunk()
329 if ((int64_t)(ck->length) - size > sizeof(malloc_mem_chunk_t)) in malloc()
333 new_ck->length = ck->length - size; in malloc()
[all …]
/DragonOS-0.1.8/kernel/src/libs/
Dlz4.c2188 U32 length = 0; in read_variable_length() local
2193 return length; in read_variable_length()
2199 length += s; in read_variable_length()
2203 return length; in read_variable_length()
2207 return length; in read_variable_length()
2256 size_t length; in LZ4_decompress_generic() local
2296 length = token >> ML_BITS; /* literal length */ in LZ4_decompress_generic()
2301 if (length == RUN_MASK) in LZ4_decompress_generic()
2304length += read_variable_length(&ip, iend - RUN_MASK, (int)endOnInput, (int)endOnInput, &error); in LZ4_decompress_generic()
2309 if ((safeDecode) && unlikely((uptrval)(op) + length < (uptrval)(op))) in LZ4_decompress_generic()
[all …]
Dvec_cursor.rs25 pub fn zerod(length: usize) -> Self { in zerod()
30 result.data.resize(length, 0); in zerod()
/DragonOS-0.1.8/kernel/src/mm/
Dmmio.h5 extern int mmio_release(int vaddr, int length);
Dmmio_buddy.rs531 pub fn release_mmio(&self, vaddr: VirtAddr, length: usize) -> Result<i32, SystemError> { in release_mmio()
533 assert!(length & (MMArch::PAGE_SIZE - 1) == 0); in release_mmio()
542 let page_count = length / MMArch::PAGE_SIZE; in release_mmio()
662 pub extern "C" fn mmio_release(vaddr: u64, length: u64) -> i32 { in mmio_release()
664 .release_mmio(VirtAddr::new(vaddr as usize), length as usize) in mmio_release()
/DragonOS-0.1.8/kernel/src/common/
Dglib.h201 bool verify_area(uint64_t addr_start, uint64_t length) in verify_area() argument
203 if ((addr_start + length) <= 0x00007fffffffffffUL) // 用户程序可用的的地址空间应<= 0x00007fffffffffffUL in verify_area()
/DragonOS-0.1.8/kernel/src/driver/virtio/
Dtransport_pci.rs131 length: PciArch::read_config( in new()
372 length: u32, field
470 if struct_info.offset + struct_info.length > bar_size in get_bar_region()
471 || size_of::<T>() > struct_info.length as usize in get_bar_region()
502 struct_info.length as usize / size_of::<T>(), in get_bar_region_slice()
/DragonOS-0.1.8/kernel/src/driver/interrupt/apic/
Dapic.c67 while (header->length > 2) in apic_io_apic_init()
78 ent += header->length; in apic_io_apic_init()
609 while (header->length > 2) in apic_get_ics()
617 ent += header->length; in apic_get_ics()
/DragonOS-0.1.8/docs/kernel/memory_management/
Dmmio.md189 | mmio_release(vaddr, length) | 取消地址为vaddr,大小为length的mmio的映射并将其归还到buddy中 |
/DragonOS-0.1.8/kernel/src/driver/acpi/
Dacpi.h118 unsigned char length; member