trait ArchIndependentRegs {
// Required methods
fn ip(&self) -> usize;
fn set_ip(&mut self, ip: usize);
fn set_sp(&mut self, sp: usize);
}Expand description
Allows us to get common arguments from the user_regs_t across architectures.
Normally this would land us ABI hell, but thankfully all of our usecases
consist of functions with a small number of register-sized integer arguments.
See https://man7.org/linux/man-pages/man2/syscall.2.html for sources.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl ArchIndependentRegs for user_regs_struct
Available on x86-64 only.
impl ArchIndependentRegs for user_regs_struct
Available on x86-64 only.