commit | b0c4881ea924d21ca819b6cf999e97c3efd040b4 | [log] [tgz] |
---|---|---|
author | Steve Muckle <smuckle@google.com> | Fri May 29 16:30:33 2020 -0700 |
committer | Steve Muckle <smuckle@google.com> | Wed Jun 03 10:51:45 2020 -0700 |
tree | 2656a389aa81d9c4a3d0e4677b60a80bc2634997 | |
parent | a8b8d108e58b74ffaff0881b96b8cc3acf7c1f53 [diff] [blame] |
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
diff --git a/libmodprobe/libmodprobe_ext_test.cpp b/libmodprobe/libmodprobe_ext_test.cpp index 057dea3..9ee5ba7 100644 --- a/libmodprobe/libmodprobe_ext_test.cpp +++ b/libmodprobe/libmodprobe_ext_test.cpp
@@ -56,6 +56,7 @@ } modules_loaded.emplace_back(path_name + options); + module_count_++; return true; }