Jon Elson wrote:
> OK, when insmod logs "Unknown symbol", is that caused by a specific
> error return
> from the kernel module?  I'm trying to figure out whether insmod bombs out
> while inspecting the the module's symbol table (ie. before the driver
> gets control, in which
> case we can't do much) or after the driver gets control and fails to
> initialize with a zero
> return code, in which case we can print a much more detailed message.
> (The ppmc driver seems to only give a zero or -1 return code now.)
> Anybody know?
>    
The "unknown symbol" error happens before the module has control.  The 
module itself does no command-line parsing, the variables that are 
specified on the command line (such as "cfg="hello") are handled by 
insmod.  The module data gets changed depending on the insmod/loadrt 
command line.

For other errors, the standard error values such as -EIO, -ENOMEM, 
-EPERM can be returned from module_init (rtapi_app_main in our case), 
which will give a more relevant error message.

- Steve


------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to