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

Colin King colin.king at canonical.com
Thu Nov 8 14:45:08 UTC 2018


From: Colin Ian King <colin.king at 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

-- 
2.19.1




More information about the fwts-devel mailing list