]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
lualoader: Add primitive hook module, use it to untangle bogus reference
authorkevans <kevans@FreeBSD.org>
Wed, 21 Mar 2018 03:07:16 +0000 (03:07 +0000)
committerkevans <kevans@FreeBSD.org>
Wed, 21 Mar 2018 03:07:16 +0000 (03:07 +0000)
commit81776acd3a1b81fa112d94fb158b1e1a07c8b964
tree77803d6a7302976c4ee5bd63092a5c31234e423c
parent06362ad468fc11671364e34ed413ea9c19d858f1
lualoader: Add primitive hook module, use it to untangle bogus reference

See: comments in the hook module about intended usage, as well as the
introduced use for config.reloaded.

Use the newly introduced hook module to define a "config.reloaded" hook.
This is currently used to register core's clearKernelCache as a reload hook
to avoid a circular dependency and fix this functionality- it didn't
actually work out, and it isn't immediately obvious how it slipped into src.

Other hook types will be introduced into the core lualoader as useful hook
points are identified.
stand/lua/Makefile
stand/lua/config.lua
stand/lua/core.lua
stand/lua/hook.lua [new file with mode: 0644]