简体   繁体   English

使内核模块在运行时可加载

[英]Make a kernel module loadable at run time

I am trying to make a kernel module loadable on run time. 我试图使内核模块在运行时可加载。 ie remove it from normal makefile tree compilation, compile it separately and load it via kldload 即从正常的makefile树编译中删除它,分别编译并通过kldload加载

My configuration: 我的配置:
* I am using freebsd 9.0 stable *我正在使用freebsd 9.0稳定版
* make buildkernel with a standard Makefile *使用标准的Makefile生成buildkernel

As of now I have no clue how to start with this, googled a bit but no success so far. 到目前为止,我不知道如何开始,谷歌搜索了一下,但到目前为止没有成功。 So how do I remove my kernel module "module_test" from Makefile and start with separately. 因此,如何从Makefile中删除内核模块“ module_test”并单独开始。 Do i need to change any thing from code also apart from makefiles ? 除了makefile,我是否还需要更改代码中的任何内容?

Any pointers to start of with. 开头的任何指针。

There are several modules in the ports collection. 端口集合中有几个模块。 Take a look at their buildsystems. 看看他们的构建系统。

The portnames usually ends in -kmod; 端口名通常以-kmod结尾; Eg: audio/aureal-kmod, comms/hso-kmod comms/ib-kmod comms/uhso-kmod etc. 例如:音频/ aureal-kmod,comms / hso-kmod comms / ib-kmod comms / uhso-kmod等。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM