Searched refs:set_program (Results 1 – 4 of 4) sorted by relevance
/DragonOS/kernel/crates/rbpf/src/ |
H A D | lib.rs | 177 pub fn set_program(&mut self, prog: &'a [u8]) -> Result<(), Error> { in set_program() method 667 pub fn set_program( in set_program() method 678 self.parent.set_program(prog)?; in set_program() 1118 pub fn set_program(&mut self, prog: &'a [u8]) -> Result<(), Error> { in set_program() method 1119 self.parent.set_program(prog)?; in set_program() 1479 pub fn set_program(&mut self, prog: &'a [u8]) -> Result<(), Error> { in set_program() method 1480 self.parent.set_program(prog)?; in set_program() 1718 pub fn set_program(&mut self, prog: Vec<u8>) -> Result<(), Error> { in set_program() method 1722 self.parent.set_program(slice)?; in set_program()
|
/DragonOS/kernel/crates/rbpf/examples/ |
H A D | uptime.rs | 50 vm.set_program(prog2).unwrap(); in main()
|
/DragonOS/kernel/crates/rbpf/tests/ |
H A D | misc.rs | 555 vm.set_program(&prog).unwrap(); in test_verifier_success() 569 vm.set_program(&prog).unwrap(); in test_verifier_fail()
|
/DragonOS/kernel/crates/rbpf/ |
H A D | README.md | 174 pub fn set_program(&mut self, prog: &'a [u8]) -> Result<(), Error> 177 pub fn set_program(&mut self, prog: &'a [u8], 182 You can use for example `my_vm.set_program(my_program);` to change the loaded
|