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()
178 let data: u64 = unsafe { *pcb.mm }.data_addr_end - unsafe { *pcb.mm }.data_addr_start; in open_status() localVariable
185 pdata.append(&mut format!("\nVmData:\t{} kB", data).as_bytes().to_owned()); in open_status()
202 let start = _pdata.data.len().min(offset); in read_status()
203 let end = _pdata.data.len().min(offset + len); in read_status()
211 let src = &_pdata.data[start..end]; in read_status()
242 data: Vec::new(), in new()
322 fn open(&self, data: &mut FilePrivateData) -> Result<(), i32> { in open()
338 *data = FilePrivateData::Procfs(private_data); in open()
345 fn close(&self, data: &mut FilePrivateData) -> Result<(), i32> { in close()
352 let private_data = match data { in close()
368 data: &mut FilePrivateData, in read_at()
382 let private_data = match data { in read_at()
396 let start = inode.data.len().min(offset); in read_at()
397 let end = inode.data.len().min(offset + len); in read_at()
405 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()