From 6b135f416cd5bed4e46c94871c84038623994612 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 16 Jul 2021 11:38:29 +0200 Subject: [nvidia-libs/nvidia-kernel] Add module_init hook, rename load hook --- core/includes/clean_module_funcs.inc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'core/includes') 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() { + : +} -- cgit v1.2.3-55-g7522