I'm a student working with the Linux kernel, and was wondering how to access methods and macros in the kernel header files from outside the kernel in an OS. I apologize if this is an ignorant question, Linux is not my area of expertise.
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
You either install the complete kernel source (with the headers), or you install a package from your distro that only contains the kernel headers. Then you can access them in any way you want, on the file system, as files.