Home
last modified time | relevance | path

Searched refs:bytes (Results 1 – 6 of 6) sorted by relevance

/DragonOS-0.1.8/docs/kernel/memory_management/
Dmmio.md158bytes,那么可以令$exp = n$。index与exp的换算公式如下:$index = exp - 12$。e.g. 一个大小为$2^{12}$ bytes的内存块,其$exp = 12$,…
/DragonOS-0.1.8/kernel/src/mm/allocator/
Dpage_frame.rs167 pub fn bytes(&self) -> usize { in bytes() method
174 pub fn from_bytes(bytes: usize) -> Option<Self> { in from_bytes()
175 if bytes & MMArch::PAGE_OFFSET_MASK != 0 { in from_bytes()
178 return Some(Self(bytes / MMArch::PAGE_SIZE)); in from_bytes()
/DragonOS-0.1.8/kernel/src/mm/
Ducontext.rs320 .find_free_at(self.mmap_min, vaddr, page_count.bytes(), map_flags)? in mmap()
324 .find_free(self.mmap_min, page_count.bytes()) in mmap()
372 let to_unmap = VirtRegion::new(start_page.virt_address(), page_count.bytes()); in munmap()
424 let region = VirtRegion::new(start_page.virt_address(), page_count.bytes()); in mprotect()
1245 mut bytes: usize, in initial_extend()
1250 bytes = page_align_up(bytes); in initial_extend()
1251 self.mapped_size += bytes; in initial_extend()
1255 bytes, in initial_extend()
1279 mut bytes: usize, in extend()
1284 bytes = page_align_up(bytes); in extend()
[all …]
/DragonOS-0.1.8/kernel/src/libs/
Dprintk.rs159 for byte in s.bytes() { in __utf8_to_ascii()
176 for byte in s.bytes() { in __write_string_on_stack()
196 for byte in s.bytes() { in __write_string_color_on_stack()
/DragonOS-0.1.8/docs/kernel/core_api/
Ddata_structures.md26 &emsp;&emsp;缓冲区大小(单位:bytes
56 &emsp;&emsp;缓冲区大小(单位:bytes
92 &emsp;&emsp;数据大小(单位:bytes
118 &emsp;&emsp;数据大小(单位:bytes
144 &emsp;&emsp;数据大小(单位:bytes
/DragonOS-0.1.8/kernel/src/driver/uart/
Duart.rs346 for c in s.bytes() { in uart_send()
438 let bytes = message.as_bytes(); in c_uart_init() localVariable
439 for c in bytes { in c_uart_init()