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, ®set, sizeof(regset), NULL );
To set a given register set, use DCMD_PROC_SETREGSET .