Home
last modified time | relevance | path

Searched refs:set_program (Results 1 – 4 of 4) sorted by relevance

/DragonOS/kernel/crates/rbpf/src/
H A Dlib.rs177 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 Duptime.rs50 vm.set_program(prog2).unwrap(); in main()
/DragonOS/kernel/crates/rbpf/tests/
H A Dmisc.rs555 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 DREADME.md174 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