Home
last modified time | relevance | path

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

/DragonOS/kernel/src/bpf/map/
H A Dlru.rs45 self.data.put(key.to_vec(), value.to_vec()); in update_elem()
H A Dhash_map.rs47 self.data.insert(key.to_vec(), value.to_vec()); in update_elem()
H A Dqueue.rs132 self.push(value.to_vec(), flag) in update_elem()
H A Dmod.rs322 let key = key_buf.read_from_user(0)?.to_vec(); in bpf_map_get_next_key()
/DragonOS/kernel/src/bpf/prog/
H A Dutil.rs92 let insns = insns_buf.read_from_user::<u8>(0)?.to_vec(); in try_from()
H A Dverifier.rs118 .flat_map(|ins| ins.to_vec()) in relocation()
/DragonOS/kernel/src/perf/
H A Dkprobe.rs43 EbpfVmRawOwned::new(Some(prog_slice.to_vec())).map_err(|_| SystemError::EINVAL)?; in do_set_bpf_prog()
/DragonOS/kernel/crates/rbpf/tests/
H A Dcranelift.rs2103 let mut mem = TCP_SACK_MATCH.to_vec(); in test_cranelift_tcp_sack_match()
2115 let mut mem = TCP_SACK_NOMATCH.to_vec(); in test_cranelift_tcp_sack_nomatch()
H A Dassembler.rs601 assert_eq!(assemble(TCP_SACK_ASM), Ok(TCP_SACK_BIN.to_vec())); in test_tcp_sack()
H A Dubpf_jit_x86_64.rs2873 let mut mem = TCP_SACK_MATCH.to_vec(); in test_jit_tcp_sack_match()
2884 let mut mem = TCP_SACK_NOMATCH.to_vec(); in test_jit_tcp_sack_nomatch()
H A Dubpf_vm.rs2658 let mut mem = TCP_SACK_MATCH.to_vec(); in test_vm_tcp_sack_match()
2666 let mut mem = TCP_SACK_NOMATCH.to_vec(); in test_vm_tcp_sack_nomatch()
/DragonOS/kernel/src/driver/video/fbdev/base/fbcon/
H A Dframebuffer_console.rs202 vc_data.font.data = font.data.to_vec(); in con_init()
681 fbcon_data.cursor_state.image.data = vc_data.font.data[char_offset..].to_vec(); in cursor()
795 .to_vec(); in cursor()
/DragonOS/kernel/src/driver/block/cache/
H A Dcached_block_device.rs150 data[index * BLOCK_SIZE..(index + 1) * BLOCK_SIZE].to_vec(), in insert()
/DragonOS/kernel/crates/rbpf/src/
H A Debpf.rs508 pub fn to_vec(&self) -> Vec<u8> { in to_vec() method