Function nix::sys::ptrace::write

source ·
pub unsafe fn write(
    pid: Pid,
    addr: AddressType,
    data: *mut c_void
) -> Result<()>
Available on crate feature ptrace only.
Expand description

Writes a word into the processes memory at the given address, as with ptrace(PTRACE_POKEDATA, …)

§Safety

The data argument is passed directly to ptrace(2). Read that man page for guidance.