Searched refs:min (Results 1 – 14 of 14) sorted by relevance
/DragonOS-0.1.8/user/apps/http_server/ |
D | main.c | 16 #define min(a, b) ((a) < (b) ? (a) : (b)) macro 96 int to_read = min(1048576, remaining); in send_file() 103 int wsize = write(sockfd, p, min(readSize, MAX_RESPONSE_SIZE)); in send_file()
|
/DragonOS-0.1.8/kernel/src/common/ |
D | glib.h | 44 #define min(x, y) ((x < y) ? (x) : (y)) macro
|
/DragonOS-0.1.8/kernel/src/filesystem/procfs/ |
D | mod.rs | 204 let start = _pdata.data.len().min(offset); in read_status() 205 let end = _pdata.data.len().min(offset + len); in read_status() 398 let start = inode.data.len().min(offset); in read_at() 399 let end = inode.data.len().min(offset + len); in read_at()
|
/DragonOS-0.1.8/kernel/src/libs/ |
D | elf.rs | 2 cmp::min, 302 let buf_size = min(size, Self::FILE_READ_BUF_SIZE); in do_load_file() 310 let read_size = min(remain, buf_size); in do_load_file() 540 let nbyte = min(Self::ELF_PAGE_SIZE - nbyte, elf_brk - elf_bss); in load()
|
/DragonOS-0.1.8/user/apps/test_bind/ |
D | main.c | 14 #define min(a, b) ((a) < (b) ? (a) : (b)) macro
|
/DragonOS-0.1.8/kernel/src/filesystem/fat/ |
D | entry.rs | 2 use core::{cmp::min, intrinsics::unlikely}; 106 let to_read_size: usize = min(buf.len(), bytes_remain as usize); in read() 123 let end_len: usize = min( in read() 125 min( in read() 193 let end_len = min( in write() 249 let extra_bytes = min((offset + len) - self.size(), MAX_FILE_SIZE - self.size()); in ensure_len() 1960 let prefix_len = min(self.basename_len, 6) as usize; 1981 let prefix_len = min(self.basename_len, 2) as usize; 2048 let prefix_len: usize = min(self.basename_len as usize, 2); 2053 let prefix_len = min(self.basename_len as usize, 6);
|
D | fs.rs | 1487 let write_size = core::cmp::min(remain_size, buf_size); in resize()
|
/DragonOS-0.1.8/kernel/src/filesystem/ramfs/ |
D | mod.rs | 135 let start = inode.data.len().min(offset); in read_at() 136 let end = inode.data.len().min(offset + len); in read_at()
|
/DragonOS-0.1.8/kernel/src/mm/allocator/ |
D | buddy.rs | 11 use core::cmp::{max, min}; 627 base = min(base, buddy_addr); in buddy_free()
|
/DragonOS-0.1.8/kernel/src/net/ |
D | syscall.rs | 1 use core::cmp::min; 559 let to_write = min(self.len()?, *addr_len as usize); in write_to_user()
|
/DragonOS-0.1.8/kernel/src/mm/ |
D | mod.rs | 507 let end = self.end().min(other.end()); in intersect()
|
/DragonOS-0.1.8/kernel/src/arch/x86_64/mm/ |
D | mod.rs | 460 core::cmp::min(page_align_up(random_size as usize), TOTAL_SIZE - allocated); in test_buddy()
|
/DragonOS-0.1.8/kernel/src/filesystem/vfs/ |
D | syscall.rs | 709 let len = core::cmp::min(slice.len(), data.len()); in scatter()
|
/DragonOS-0.1.8/kernel/src/time/ |
D | clocksource.rs | 254 max_cycles = max_cycles.min(cs_data_guard.mask.bits); in clocksource_max_deferment()
|