Home
last modified time | relevance | path

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

/DragonOS/kernel/src/ipc/
H A Dpipe.rs24 const PIPE_BUFF_SIZE: usize = 1024; constant
57 data: [u8; PIPE_BUFF_SIZE],
89 if self.valid_cnt as usize != PIPE_BUFF_SIZE { in poll()
108 return self.valid_cnt as usize == PIPE_BUFF_SIZE; in buf_full()
134 data: [0; PIPE_BUFF_SIZE], in new()
139 size: PIPE_BUFF_SIZE as i64, in new()
238 let mut end = (inode.valid_cnt as usize + inode.read_pos as usize) % PIPE_BUFF_SIZE; in read_at()
241 end = (len + inode.read_pos as usize) % PIPE_BUFF_SIZE; in read_at()
248 buf[0..(PIPE_BUFF_SIZE - start)].copy_from_slice(&inode.data[start..PIPE_BUFF_SIZE]); in read_at()
249 buf[(PIPE_BUFF_SIZE - start)..num].copy_from_slice(&inode.data[0..end]); in read_at()
[all …]