Lines Matching refs:len
193 return Ok((pdata.len() * size_of::<u8>()) as i64); in open_status()
200 len: usize, in read_status()
204 let start = _pdata.data.len().min(offset); in read_status()
205 let end = _pdata.data.len().min(offset + len); in read_status()
208 if buf.len() < (end - start) { in read_status()
214 buf[0..src.len()].copy_from_slice(src); in read_status()
215 return Ok(src.len()); in read_status()
368 len: usize, in read_at()
372 if buf.len() < len { in read_at()
393 ProcFileType::ProcStatus => return inode.read_status(offset, len, buf, private_data), in read_at()
398 let start = inode.data.len().min(offset); in read_at()
399 let end = inode.data.len().min(offset + len); in read_at()
402 if buf.len() < (end - start) { in read_at()
408 buf[0..src.len()].copy_from_slice(src); in read_at()
409 return Ok(src.len()); in read_at()
461 fn resize(&self, len: usize) -> Result<(), SystemError> { in resize()
464 inode.data.resize(len, 0); in resize()
633 match key.len() { in get_entry_name()
636 …={key_len}>1, current inode_id={inode_id}, to find={to_find}", key_len=key.len(), inode_id = inode… in get_entry_name()