Home
last modified time | relevance | path

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

/DragonOS-0.1.7/kernel/src/common/
Dglib.h44 #define min(x, y) ((x < y) ? (x) : (y)) macro
/DragonOS-0.1.7/kernel/src/filesystem/procfs/
Dmod.rs201 let start = _pdata.data.len().min(offset); in read_status()
202 let end = _pdata.data.len().min(offset + len); in read_status()
395 let start = inode.data.len().min(offset); in read_at()
396 let end = inode.data.len().min(offset + len); in read_at()
/DragonOS-0.1.7/kernel/src/filesystem/fat/
Dentry.rs2 use core::cmp::min;
107 let to_read_size: usize = min(buf.len(), bytes_remain as usize); in read()
124 let end_len: usize = min( in read()
126 min( in read()
195 let end_len = min( in write()
256 let extra_bytes = min((offset + len) - self.size(), MAX_FILE_SIZE - self.size()); in ensure_len()
1947 let prefix_len = min(self.basename_len, 6) as usize;
1968 let prefix_len = min(self.basename_len, 2) as usize;
2035 let prefix_len: usize = min(self.basename_len as usize, 2);
2040 let prefix_len = min(self.basename_len as usize, 6);
/DragonOS-0.1.7/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.7/kernel/src/filesystem/vfs/
Dsyscall.rs512 let len = core::cmp::min(slice.len(), data.len()); in scatter()
/DragonOS-0.1.7/kernel/src/net/
Dsyscall.rs1 use core::cmp::min;
755 let to_write = min(self.len()?, *addr_len as usize); in write_to_user()