fn check_imm_register(insn: &ebpf::Insn, insn_ptr: usize) -> Result<(), VerifierError> {
    if insn.imm < 0 || insn.imm > 10 {
        return Err(VerifierError::InvalidRegister(insn_ptr));
    }
    Ok(())
}
/// Check that the imm is a valid register number
Check that the imm is a valid register number
Check that the imm is a valid register number
fn check_imm_register(insn: &ebpf::Insn, insn_ptr: usize) -> Result<(), VerifierError> {
    if insn.imm < 0 || insn.imm > 10 {
        return Err(VerifierError::InvalidRegister(insn_ptr));
    }
    Ok(())
}
fn check_imm_register ( insn : & ebpf :: Insn , insn_ptr : usize ) -> Result < ( ) , VerifierError > { if insn . imm < 0 || insn . imm > 10 { return Err ( VerifierError :: InvalidRegister ( insn_ptr ) ) ; } Ok ( ( ) ) }
Check that the imm is a valid register number
Check that the imm is a valid register number
insn
&ebpf::Insn
insn_ptr
usize