Re: modload() fails with ENOREG



iam.techy@xxxxxxxxx wrote:
 Hi,
I need to load a dlkm module programatically in 11.23 (IA). When I try
to load any dlkm module through modload() syscall, I get ENOREG error.
syslog shows "modld: Attempt to load unregistered module".kcmodule
loads the module without any issues. So how can I load the same module
by using modload () syscall ?
Thanks.


Well, according to to modload(2) man page:
The module must be of a supported type and must have been registered via kcmodule(1M) before it can be loaded.


Have you run kcmodule with your target module?

Don
.



Relevant Pages

  • Re: Problem with getpwnam() syscall
    ... > I saw in the output that after the syscall it was tried to load the ... > environment), after I copied it there it worked like a charm! ... You may want to submit a bug to the howto you were reading about ...
    (comp.lang.perl.misc)
  • [PATCH -mm 2/7] add execns syscall to s390
    ... This patch adds the execns() syscall to the s390 architecture. ... la %r2,SP_PTREGS# load pt_regs as parameter ...
    (Linux-Kernel)
  • modload() fails with ENOREG
    ... I need to load a dlkm module programatically in 11.23. ... to load any dlkm module through modload() syscall, ...
    (comp.sys.hp.hpux)
  • Question Title: Unable to Load a .NET UserControl In Web Browser
    ... I can't get a simple usercontrol to load up in a web page. ... Create a new C# Project as a "windows control library". ... ModLoad: 7c340000 7c396000 ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • modload - weird behavior
    ... modload is giving strange error while trying to load a module. ... This is the loadable module wrapper. ...
    (comp.unix.solaris)