|
Using kernel functions and macros in userspace
Hi
Is there any way to call kernel functions and macros in user space program.
I am writing a simple program and compiling it through gcc, in which I want to calculate the CPU capability in MHz. For this, I want to use the "cpu_has_tsc" macro and barrier() macro. barrier() macro is present in asm/system.h.
Do I need to use the system call to go through this, if yes how?
|