insomniux wrote:
Hi,
I need to check if a kernel module is loaded on a linux box.My linux
version 2.6. If the module is not loaded, I need to load it. Should I
do that with a system command (modprobe) or is there a better way in C?
I'm sorry, but you appear to have posted this to the wrong newsgroup.
C cannot do this directly. C++ cannot do this directly.
Perhaps you intended to post this to a linux newsgroup?
I suspect that there are APIs for Linux that allow you to get that sort
of information.
OS specific information is not topical here.
Ben Pope
--
I'm not just a number. To many, I'm known as a string...