Lines Matching refs:pdata
145 fn open_status(&self, pdata: &mut ProcfsFilePrivateData) -> Result<i64, SystemError> { in open_status()
159 let pdata: &mut Vec<u8> = &mut pdata.data; in open_status() localVariable
161 pdata.append( in open_status()
178 pdata.append(&mut format!("\nState:\t{:?}", state).as_bytes().to_owned()); in open_status()
181 pdata.append(&mut format!("\nTgid:\t{}", pcb.tgid().into()).into()); in open_status()
184 pdata.append( in open_status()
191 pdata.append( in open_status()
198 pdata.append(&mut format!("\nFDSize:\t{}", pcb.fd_table().read().fd_open_count()).into()); in open_status()
201 pdata.append(&mut format!("\nKthread:\t{}", pcb.is_kthread() as usize).into()); in open_status()
203 pdata.append(&mut format!("\ncpu_id:\t{}", cpu_id).as_bytes().to_owned()); in open_status()
204 pdata.append(&mut format!("\npriority:\t{:?}", priority).as_bytes().to_owned()); in open_status()
205 pdata.append( in open_status()
211 pdata.append(&mut format!("\nvrtime:\t{}", vrtime).as_bytes().to_owned()); in open_status()
222 pdata.append( in open_status()
227 pdata.append(&mut format!("\nVmData:\t{} kB", data).as_bytes().to_owned()); in open_status()
228 pdata.append(&mut format!("\nVmExe:\t{} kB", text).as_bytes().to_owned()); in open_status()
231 pdata.append( in open_status()
238 self.trim_string(pdata); in open_status()
240 return Ok((pdata.len() * size_of::<u8>()) as i64); in open_status()
244 fn open_meminfo(&self, pdata: &mut ProcfsFilePrivateData) -> Result<i64, SystemError> { in open_meminfo()
249 let data: &mut Vec<u8> = &mut pdata.data; in open_meminfo()
275 pdata: &mut ProcfsFilePrivateData, in proc_read()
277 let start = pdata.data.len().min(offset); in proc_read()
278 let end = pdata.data.len().min(offset + len); in proc_read()
286 let src = &pdata.data[start..end]; in proc_read()