[0/3] Remove modprobe, replace with module system calls
mbox series

Message ID 20181108144511.12678-1-colin.king@canonical.com
Headers show
Series
  • Remove modprobe, replace with module system calls
Related show

Message

Colin King Nov. 8, 2018, 2:45 p.m. UTC
From: Colin Ian King <colin.king@canonical.com>

This patchset replaces the exec'ing of modprobe to load/unload kernel
modules with a set of helper functions to check, load and unload
kernel modules.  This is both cleaner and faster and allows finer
grained error checking on module load/unload failure points.

Colin Ian King (3):
  src/lib: add module probing helper functions
  lib: fwts_efi_module: use the new module loading helper functions
  lib/fwts_cpu: use new use the new module loading helper functions

 src/bios/mtrr/mtrr.c            |   7 +-
 src/cpu/msr/msr.c               |  14 +-
 src/cpu/nx/nx.c                 |   2 +-
 src/cpu/virt/virt_svm.c         |   6 +-
 src/cpu/virt/virt_vmx.c         |   6 +-
 src/lib/include/fwts.h          |   1 +
 src/lib/include/fwts_cpu.h      |   2 +-
 src/lib/include/fwts_modprobe.h |  29 ++++
 src/lib/src/Makefile.am         |   1 +
 src/lib/src/fwts_cpu.c          |  22 ++-
 src/lib/src/fwts_efi_module.c   |  55 +-------
 src/lib/src/fwts_modprobe.c     | 235 ++++++++++++++++++++++++++++++++
 12 files changed, 309 insertions(+), 71 deletions(-)
 create mode 100644 src/lib/include/fwts_modprobe.h
 create mode 100644 src/lib/src/fwts_modprobe.c