Lines Matching refs:data
77 data: Vec<u8>, field
82 return ProcfsFilePrivateData { data: Vec::new() }; in new()
96 data: Vec<u8>, field
109 fn trim_string(&self, data: &mut Vec<u8>) { in trim_string()
110 data.drain_filter(|x: &mut u8| *x == 0); in trim_string()
111 data.push(0); in trim_string()
131 let pdata: &mut Vec<u8> = &mut pdata.data; in open_status()
179 let data = (address_space_guard.end_data - address_space_guard.start_data) / 1024; in open_status() localVariable
187 pdata.append(&mut format!("\nVmData:\t{} kB", data).as_bytes().to_owned()); in open_status()
204 let start = _pdata.data.len().min(offset); in read_status()
205 let end = _pdata.data.len().min(offset + len); in read_status()
213 let src = &_pdata.data[start..end]; in read_status()
244 data: Vec::new(), in new()
324 fn open(&self, data: &mut FilePrivateData, _mode: &FileMode) -> Result<(), SystemError> { in open()
340 *data = FilePrivateData::Procfs(private_data); in open()
347 fn close(&self, data: &mut FilePrivateData) -> Result<(), SystemError> { in close()
354 let private_data = match data { in close()
370 data: &mut FilePrivateData, in read_at()
384 let private_data = match 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()
407 let src = &inode.data[start..end]; in read_at()
464 inode.data.resize(len, 0); in resize()
476 data: usize, in create_with_data()
495 data: Vec::new(), in create_with_data()
510 raw_dev: data, in create_with_data()