How to include math.h #include <math.h> on kernel source file?

c, kernel, math, module

Solution

In experts view , its NOT a good approach to communicate data between kernel space and user space. Either fully work on kernel space OR only on user space.

But one solution can, use read() and write() command in a kernel module to send the information between user space and kernel space.

Problem

I am trying to include math.h in my Linux kernel module. If I use, ``` #include '/usr/include/math.h' ``` It give me theses errors: ``` error: features.h: No such file or directory error: bits/huge_val.h: No such file or directory error: bits/mathdef.h: No such file or directory error: bits/mathcalls.h: No such file or directory ``` Why is this?

Original source