DCMD_PROC_SETREGSET

Set the given register set.

#include <sys/procfs.h>

#define DCMD_PROC_SETREGSET   __DIOTF(_DCMD_PROC, __PROC_SUBCMD_PROCFS + 26, procfs_regset)

The arguments to devctl() are:

Argument Value
filedes A file descriptor for the process.
dcmd DCMD_PROC_SETREGSET
dev_data_ptr A pointer to a procfs_regset structure
n_bytes sizeof(procfs_regset)
dev_info_ptr NULL

The argument is a pointer to a procfs_regset structure that specifies the values to assign to the register set. For example:

procfs_regset regset;

regset.id = REGSET_PERFREGS;
devctl( fd, DCMD_PROC_SETREGSET, &regset, sizeof(regset), NULL );

To get the given register set, use DCMD_PROC_GETREGSET.