2 .\" This file and its contents are supplied under the terms of the
3 .\" Common Development and Distribution License ("CDDL"), version 1.0.
4 .\" You may only use this file in accordance with the terms of version
7 .\" A full copy of the text of the CDDL should have accompanied this
8 .\" source. A copy of the CDDL is also available via the Internet at
9 .\" http://www.illumos.org/license/CDDL.
12 .\" Copyright 2015 Joyent, Inc.
19 .Nd write data to the address space of a process
25 .Fa "struct ps_prochandle *P"
28 .Fa "uintptr_t address"
33 function writes data from
37 starting at the address
44 function is logically analogous to the
48 For live processes, this function is equivalent to writing to the
52 For core files, it writes to the logical address space of what was once the
53 process and not the corresponding offset in the on-disk file.
54 ELF objects grabbed through
56 do not support being written to.
60 function cannot be used to
62 the size of a mapping; writing to an unmapped region generates an
65 Upon successful completion, the
67 function returns the number of bytes successfully written to
69 This number is never greater than
75 is set to indicate an error.
76 For the full list of errors see the
88 function will fail if:
92 refers to an ELF object and not a core file or active process.
94 .Sh INTERFACE STABILITY