summaryrefslogtreecommitdiffstats
path: root/lib/libc/regex/engine.c
diff options
context:
space:
mode:
authorzec <zec@FreeBSD.org>2009-04-26 07:09:39 +0000
committerzec <zec@FreeBSD.org>2009-04-26 07:09:39 +0000
commit71a3c7baca5938d3f5184d9a65dc206cb4d94681 (patch)
treea3ba47a1130ea0a611867c23e762a12d9c8fd089 /lib/libc/regex/engine.c
parenta5976db964145a6561ae66caccd1532bad7f97ee (diff)
downloadFreeBSD-src-71a3c7baca5938d3f5184d9a65dc206cb4d94681.zip
FreeBSD-src-71a3c7baca5938d3f5184d9a65dc206cb4d94681.tar.gz
Extend the vnet module registration / initialization framework
first introduced @ r190909 with a vnet module deregistration service. kldunloadable modules, which are currently using vnet_mod_register() to attach their per-vnet initialization routines to the vnet initialization framework, should call vnet_mod_deregister() before acknowledging MOD_UNLOAD requests in their mod_event handlers. Such changes to the existing code base will follow in subsequent commits. vnet_mod_deregister() does not check whether departing vnet modules are registered as prerequisites for another module(s), so it should be used with care. Currently I'm only aware of vnet modules which are leafs on module dependency graphs that are kldunloadable. This change also introduces per-vnet module destructor handler, which calls vnet's module cleanup function, which (if required) has to be registered in vnet module's vnet_modinfo_t structure .vmi_idetach field. Once options VIMAGE becomes operational, the framework will take care that module's cleanup function become invoked for each active vnet instance, and that the memory allocated for each instance gets freed. Currently calls to destructor handlers must always succeed.
Diffstat (limited to 'lib/libc/regex/engine.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud