Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - io-net Converters and Filters: (2 Items)
   
io-net Converters and Filters  
I'm trying to write an io-net converter module but I'm having trouble
getting it registered.

 

When my io_net_registrant_t structure contains converter information

 

static io_net_registrant_t ecat_reg = {
_REG_CONVERTOR | _REG_NO_REMOUNT,

"ncm-ecat_en.so", 
"ecat",
"en",
&ecat_ctrl, 
&ecat_funcs,

0, 
{ 0 }, 
0 
};

 

mount fails with the following error.

 

mount: Can't mount / (type io-net)

mount: Possible reason: Invalid argument

 

When I switch the io_net_registrant_t structure to be a filter instead

 

static io_net_registrant_t ecat_reg = {
_REG_FILTER_ABOVE | _REG_NO_REMOUNT | _REG_DEREG_ALL,
"nfm-en_en.so", 
"en",
"en",
&ecat_ctrl, 
&ecat_funcs, 
0, 
{ 0 }, 
0 
};

 

the module registration works just fine.

 

What am I missing for the converter? Does the protocol have to exist
before the converter can be registered?

 

Mark

Re: io-net Converters and Filters  
On Mon, Mar 02, 2009 at 03:48:44PM -0500, Mark Dowdy wrote:
> I'm trying to write an io-net converter module but I'm having trouble
> getting it registered.
> 
>  
> 
> When my io_net_registrant_t structure contains converter information
> 
>  
> 
> static io_net_registrant_t ecat_reg = {
> _REG_CONVERTOR | _REG_NO_REMOUNT,
> 
> "ncm-ecat_en.so", 
> "ecat",
> "en",
> &ecat_ctrl, 
> &ecat_funcs,
> 
> 0, 
> { 0 }, 
> 0 
> };

Do you have both an rx_up() and rx_down() func defined in
ecat_funcs?

-seanb