I want to develop a hook library in Linux ( Android ) that need to access to general purpose register.
But I don't know which header file contains it. Can anyone tell me which header file contain the definition of the register ? And maybe how to access the register.
Consider the Android maybe run on ARMv7 or ARM64 or x86, Maybe there's a pattern of the header file, for example #include <x86/register>