diff options
author | Simon Rettberg | 2021-07-16 11:38:29 +0200 |
---|---|---|
committer | Simon Rettberg | 2021-07-16 11:38:29 +0200 |
commit | 6b135f416cd5bed4e46c94871c84038623994612 (patch) | |
tree | bbe8634699ba202af64e193ef7ba8819f4b7dff5 /core/includes | |
parent | useradd.inc: fix minor issues (diff) | |
download | mltk-6b135f416cd5bed4e46c94871c84038623994612.tar.gz mltk-6b135f416cd5bed4e46c94871c84038623994612.tar.xz mltk-6b135f416cd5bed4e46c94871c84038623994612.zip |
[nvidia-libs/nvidia-kernel] Add module_init hook, rename load hook
Diffstat (limited to 'core/includes')
-rw-r--r-- | core/includes/clean_module_funcs.inc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/core/includes/clean_module_funcs.inc b/core/includes/clean_module_funcs.inc index 91f13942..46a6993c 100644 --- a/core/includes/clean_module_funcs.inc +++ b/core/includes/clean_module_funcs.inc @@ -17,7 +17,15 @@ post_copy() { } # Called when this module is about to be handled, before fetching the source. -module_load() { +pre_exec() { : } +# Called when this module is active in a target. This is called for each module +# once, before any other method is called, and before any packages are installed. +# Note that is does not honor any dependency ordering of modules. Consider this as +# being called in a random order. Also, this gets called on every run, there +# is no flag to remember this has already been called in a previous run. +module_init() { + : +} |