如何math.h中包含的#include<&math.h中GT;内核源文件? [英] How to include math.h #include <math.h> on kernel source file?

查看:536
本文介绍了如何math.h中包含的#include<&math.h中GT;内核源文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想包括我的Linux内核模块math.h中。如果我使用,

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

这是为什么?

推荐答案

在专家认为,它不是沟通的内核空间和用户空间之间数据的好方法。无论是在内核空间或仅在用户空间的充分合作。

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.

这篇关于如何math.h中包含的#include<&math.h中GT;内核源文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆