Lines Matching refs:data
76 data: Vec<u8>, field
81 return ProcfsFilePrivateData { data: Vec::new() }; in new()
95 data: Vec<u8>, field
108 fn trim_string(&self, data: &mut Vec<u8>) { in trim_string()
109 data.drain_filter(|x: &mut u8| *x == 0); in trim_string()
110 data.push(0); in trim_string()
130 let pdata: &mut Vec<u8> = &mut pdata.data; in open_status()
177 let data: u64 = unsafe { *pcb.mm }.data_addr_end - unsafe { *pcb.mm }.data_addr_start; in open_status() localVariable
184 pdata.append(&mut format!("\nVmData:\t{} kB", data).as_bytes().to_owned()); in open_status()
201 let start = _pdata.data.len().min(offset); in read_status()
202 let end = _pdata.data.len().min(offset + len); in read_status()
210 let src = &_pdata.data[start..end]; in read_status()
241 data: Vec::new(), in new()
321 fn open(&self, data: &mut FilePrivateData, _mode: &FileMode) -> Result<(), SystemError> { in open()
337 *data = FilePrivateData::Procfs(private_data); in open()
344 fn close(&self, data: &mut FilePrivateData) -> Result<(), SystemError> { in close()
351 let private_data = match data { in close()
367 data: &mut FilePrivateData, in read_at()
381 let private_data = match data { in read_at()
395 let start = inode.data.len().min(offset); in read_at()
396 let end = inode.data.len().min(offset + len); in read_at()
404 let src = &inode.data[start..end]; in read_at()
461 inode.data.resize(len, 0); in resize()
473 data: usize, in create_with_data()
492 data: Vec::new(), in create_with_data()
507 raw_dev: data, in create_with_data()