Commit graph

18 commits

Author SHA1 Message Date
Steve Muckle
e6bf24912a libmodprobe: add verbose mode
am: ded44c06be

Change-Id: I4696ec3115a46806d5a829142902b94b413e7223
2019-08-07 10:44:32 -07:00
Steve Muckle
46b9a98ea6 libmodprobe: add GetAllDependencies
am: 781aa78ee2

Change-Id: I9e7defc1e21efb1c3561079a24ec5852e5a60c03
2019-08-07 10:44:10 -07:00
Steve Muckle
4a644fa521 libmodprobe: add support to list modules
am: 012cfa19b0

Change-Id: I82ec8054ec1709ff18bd8d43851554a7e1625f40
2019-08-07 10:43:36 -07:00
Steve Muckle
5b3690cb73 libmodprobe: add support for a blacklist
am: e31f840a0a

Change-Id: I04851fa1415b0c60af31f9fe053328ec8a9baaf9
2019-08-07 10:43:02 -07:00
Steve Muckle
0459294c3f libmodprobe: support parameters in LoadWithAliases
am: 13700a69d3

Change-Id: I7de4448ea0120be156347131359f5db903ff750f
2019-08-07 10:42:43 -07:00
Steve Muckle
90947b9c42 libmodprobe: add support to remove modules
am: bb58b01574

Change-Id: Ib09a53985855f840a6d23a3c6c555e84c8f761cc
2019-08-07 10:42:10 -07:00
Steve Muckle
4395f58bd5 libmodprobe: make name canonical in LoadWithAliases
am: 73b2928b94

Change-Id: I849ca922250842ed47854c6d2e7dead57ae9fc9b
2019-08-07 10:41:36 -07:00
Steve Muckle
92a432a1e2 libmodprobe: make available in vendor
am: 4104b8803a

Change-Id: I30d6abcd0bcc53101029de024773d8120e41cc24
2019-08-07 10:40:51 -07:00
Steve Muckle
ded44c06be libmodprobe: add verbose mode
Change-Id: I2be18320461cd712a4828400b8f29bb5f07c801f
2019-08-06 13:58:13 -07:00
Steve Muckle
781aa78ee2 libmodprobe: add GetAllDependencies
Add a method to retrieve the dependencies (both hard and soft) of a
module.

Change-Id: Ie44ceb3e36856bb1a3e68c5d3c0d55a38deb0ef9
2019-08-06 13:58:13 -07:00
Steve Muckle
012cfa19b0 libmodprobe: add support to list modules
List the known modules with a name matching a given pattern.

Change-Id: I7f6bd1f09a688c66682f94c5837e61d7dc61c1f7
2019-08-06 13:58:13 -07:00
Steve Muckle
e31f840a0a libmodprobe: add support for a blacklist
If the blacklist is enabled, blacklisted modules are treated as though
they are not present.

Change-Id: Ie8712f24298e78f92d5028b1ca3a8a3e07a9190a
2019-08-06 13:58:13 -07:00
Steve Muckle
13700a69d3 libmodprobe: support parameters in LoadWithAliases
Add support to specify module parameters in LoadWithAliases. These
parameters will be appended to any which are specified for the module in
modules.options.

Change-Id: I9aff1656ea397826f815b658b3b52c1892748601
2019-08-06 13:58:13 -07:00
Steve Muckle
bb58b01574 libmodprobe: add support to remove modules
Add a remove method which will unload a given module from the kernel,
along with any modules it depended on, assuming those modules are now
unused.

Change-Id: Ie66dc153ef1771f50e26421d38d3656e95954780
2019-08-06 13:58:13 -07:00
Steve Muckle
73b2928b94 libmodprobe: make name canonical in LoadWithAliases
Make the module name canonical in LoadWithAliases so it may be used
more easily from outside the class.

Change-Id: I7ee496b77a2beea43a6b68daed7af42660747559
2019-08-06 13:58:13 -07:00
Steve Muckle
4104b8803a libmodprobe: make available in vendor
A toolbox implementation of modprobe will require libmodprobe.

Change-Id: I7790576b828ad8cd5fae0c51926d8da9fb540d30
2019-08-06 13:58:13 -07:00
Steve Muckle
025cad4269 libmodprobe: add OWNERS file
Change-Id: I812c0420d982d2c927f40ca43545bdd15bc7b8be
2019-08-05 11:29:01 -07:00
Steve Muckle
18b981ea7c create libmodprobe, integrate into first_stage_init
Modprobe functionality is required both within first stage init and also
as a standalone binary. Create a library for this using and extending
the logic in modalias_handler.cpp.

First stage init will attempt to load modules from /lib/modules.

Bug: 129780532
Change-Id: Ie3582358fd839c2f64e1b386b30ed551a86aef5d
2019-06-18 13:24:56 -07:00