version 1.5, 2015/12/21 11:44:20
|
version 1.6, 2015/12/21 12:28:21
|
Line 344 xxx_modcmd(modcmd_t cmd, void *data)
|
Line 344 xxx_modcmd(modcmd_t cmd, void *data)
|
} |
} |
// some global initialization |
// some global initialization |
|
|
|
#ifdef PSEUDODEVICE |
|
xxxattach(0); |
|
// devices instances are created by xxxconfig utility |
|
// and some private ioctl |
|
#else |
// magic happens to create device instances |
// magic happens to create device instances |
|
#endif |
// sometimes by calling config_attach_pseudo |
|
// sometimes by faking structures manually |
|
// using config_attach_loc might be possible |
|
// sometimes by calling xxxattach(0) which |
|
// uses one of the methods |
|
#endif |
#endif |
break; |
break; |
case MODULE_CMD_FINI: |
case MODULE_CMD_FINI: |
|
// outside of #ifdef _MODULE to allow removal of builtins |
|
#ifdef PSEUDODEVICE |
// magic happens to destroy device instances |
// magic happens to destroy device instances |
|
#else |
|
// magic happens to destroy device instances |
|
#endif |
|
|
// some global finalization |
// some global finalization |
#ifdef _MODULE |
#ifdef _MODULE |