title: Get details of Linux kernel modules in C++
body: <p>In Linux, I need to get the details(viz. service exit code,status,type,etc) of all the driver modules and I tried reading <code>/proc/modules</code>. But it gives only name, size and use count. I read that <code>modinfo</code> retrieves info from <code>lib/modules/</code>,but all modules doesn't have all info in it.  From where can I get these details reliably. I am coding in <code>C++</code>. </p>