DCMD_PROC_GETREGSET

Read the given register set. The argument is a pointer to a procfs_regset structure that's filled in with the required information on return. For example:

procfs_regset regset;

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

To set a given register set, use DCMD_PROC_SETREGSET .