Great idea to have something under Linux. Afterall demotics systems tend to run Linux (in my case OpenHab).
But I can confirm the module interface is tricky and has evolved over time. I tried to “clone” some modules and with the older modules there is not much consistency in the way the memory was used (probably also due to limited amounts of flash memory in older micro processors). It got better for the new modules (on the interface, the memory is just a bunch of bytes, instead of specific commands for each supported feature.
Will monitor your progress.
Good luck anyway!