| PTRACE(2) | AerieBSD 1.0 Refernce Manual | PTRACE(2) |
struct ptrace_io_desc {
int piod_op;
void *piod_offs;
void *piod_addr;
size_t piod_len;
};
Where piod_offs is the offset within the traced process where the I/O operation should be made, piod_addr is the buffer in the parent and piod_len is the length of the I/O request. The piod_op member specifies what operation needs to be done. Possible values are:
typedef struct ptrace_event {
int pe_set_event;
} ptrace_event_t;
Where pe_set_event is the set of events to be reported. This set is formed by OR'ing together the following values:
typedef struct ptrace_state {
int pe_report_event;
pid_t pe_other_pid;
} ptrace_state_t;
Where pe_report_event is the event being reported. If the event being reported is PTRACE_FORK, pe_other_pid will be set to the process ID of the other end of the fork. A pointer to this structure is passed in addr. The data argument should be set to sizeof(struct ptrace_state).
| AerieBSD 1.0 Reference Manual | May 26 2009 | PTRACE(2) |