Home
last modified time | relevance | path

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

/DragonOS-0.1.7/kernel/src/ipc/
Dpipe.rs27 valid_cnt: i32, field
41 valid_cnt: 0, in new()
89 while inode.valid_cnt == 0 { in read_at()
104 let mut num = inode.valid_cnt as usize; in read_at()
108 let mut end = (inode.valid_cnt as usize + inode.read_pos as usize) % PIPE_BUFF_SIZE; in read_at()
110 if len < inode.valid_cnt as usize { in read_at()
126 inode.valid_cnt -= num as i32; in read_at()
170 while len + inode.valid_cnt as usize > PIPE_BUFF_SIZE { in write_at()
197 inode.valid_cnt += len as i32; in write_at()