summaryrefslogtreecommitdiff
path: root/libmodprobe/libmodprobe_ext_test.cpp
diff options
context:
space:
mode:
authorSteve Muckle <smuckle@google.com>2020-05-29 16:30:33 -0700
committerSteve Muckle <smuckle@google.com>2020-06-03 12:11:15 -0700
commit8bafa9e28e6bbe9ea1c82cdcf22eb4292ca0ad9d (patch)
treef52a33649c961453d0e81a619a05111a0904c2b6 /libmodprobe/libmodprobe_ext_test.cpp
parent84db2e40e1fc3a9d2e5091845abb51a04ee95793 (diff)
add libmodprobe api to query the number of modules loaded
In the short term this will be used to help implement support for multiple kernel module directories but it may be useful in other contexts as well. Bug: 157645635 Change-Id: I15a252b6e9394292c8f3557ed65112c935830441 Merged-In: I15a252b6e9394292c8f3557ed65112c935830441
Diffstat (limited to 'libmodprobe/libmodprobe_ext_test.cpp')
-rw-r--r--libmodprobe/libmodprobe_ext_test.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libmodprobe/libmodprobe_ext_test.cpp b/libmodprobe/libmodprobe_ext_test.cpp
index 057dea3a0..9ee5ba7ab 100644
--- a/libmodprobe/libmodprobe_ext_test.cpp
+++ b/libmodprobe/libmodprobe_ext_test.cpp
@@ -56,6 +56,7 @@ bool Modprobe::Insmod(const std::string& path_name, const std::string& parameter
}
modules_loaded.emplace_back(path_name + options);
+ module_count_++;
return true;
}