What interface I need to run lsmod?

would expanding this to hardware-observe make sense so you are not required to us a totally unrelated interface like opengl ?