Mark Dowdy(deleted)
|
io-net Converters and Filters
|
Mark Dowdy(deleted)
03/02/2009 3:48 PM
post23268
|
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
|
|
|