]> git.ipfire.org Git - thirdparty/kmod.git/commit - tools/depmod.c
depmod: create depmod dir independent search function
authorYauheni Kaliuta <yauheni.kaliuta@redhat.com>
Tue, 9 May 2017 19:09:21 +0000 (22:09 +0300)
committerLucas De Marchi <lucas.demarchi@intel.com>
Fri, 2 Jun 2017 02:17:42 +0000 (19:17 -0700)
commit369ca65620a00611285666c9b961e6156572e8d7
tree68e6f02761ba6e8e7309d42b84200e87e78c9344
parent0d6b3f9beaea031c445dc6bd125d0229f142718b
depmod: create depmod dir independent search function

Prepare to implement external directories support.

The patch splits depmod_modules_search() function to two
functions: depmod_modules_search(), called by the high level with
intention to search all possible modules, and
depmod_module_search_path(), which takes path as a parameter and
scans modules under the path only. Initially it is used to scan
the same depmod->cfg->dirname path only.

Signed-off-by: Yauheni Kaliuta <yauheni.kaliuta@redhat.com>
tools/depmod.c