Il 11/04/2013 14:08, liu ping fan ha scritto: >>> >> /* clean up network at qemu process termination */ >>> >> atexit(&net_cleanup); >>> >> + atexit(&hostmem_finalize); >> > >> > This should be in hostmem_init. >> > > Ok, thanks. And extra, for the hostmem_init, what about something like > #define block_init(function) module_init(function, MODULE_INIT_BLOCK)
Actually, I would prefer that you do not use a global, so the above comment doesn't really apply unless someone overrides me and tell you to use a global. Paolo