Home
last modified time | relevance | path

Searched refs:min (Results 1 – 14 of 14) sorted by relevance

/DragonOS-0.1.8/user/apps/http_server/
Dmain.c16 #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/
Dglib.h44 #define min(x, y) ((x < y) ? (x) : (y)) macro
/DragonOS-0.1.8/kernel/src/filesystem/procfs/
Dmod.rs204 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/
Delf.rs2 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/
Dmain.c14 #define min(a, b) ((a) < (b) ? (a) : (b)) macro
/DragonOS-0.1.8/kernel/src/filesystem/fat/
Dentry.rs2 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);
Dfs.rs1487 let write_size = core::cmp::min(remain_size, buf_size); in resize()
/DragonOS-0.1.8/kernel/src/filesystem/ramfs/
Dmod.rs135 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/
Dbuddy.rs11 use core::cmp::{max, min};
627 base = min(base, buddy_addr); in buddy_free()
/DragonOS-0.1.8/kernel/src/net/
Dsyscall.rs1 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/
Dmod.rs507 let end = self.end().min(other.end()); in intersect()
/DragonOS-0.1.8/kernel/src/arch/x86_64/mm/
Dmod.rs460 core::cmp::min(page_align_up(random_size as usize), TOTAL_SIZE - allocated); in test_buddy()
/DragonOS-0.1.8/kernel/src/filesystem/vfs/
Dsyscall.rs709 let len = core::cmp::min(slice.len(), data.len()); in scatter()
/DragonOS-0.1.8/kernel/src/time/
Dclocksource.rs254 max_cycles = max_cycles.min(cs_data_guard.mask.bits); in clocksource_max_deferment()