# SYNOPSIS
-*rmmod* [_OPTIONS_] [_modulename_]
+*rmmod* [_OPTIONS_] [_list of modulenames_]
# DESCRIPTION
-*rmmod* is a trivial program to remove a module (when module unloading support
-is provided) from the kernel. Most users will want to use *modprobe*(8) with the
-*-r* option instead since it removes unused dependent modules as well.
+*rmmod* is a trivial program to remove a module or a list of modules from the
+kernel (when module unloading support is provided). Most users will want to use
+*modprobe*(8) with the *-r* option instead since it removes unused dependent
+modules as well.
+
+When a list of modules is provided, the program will process them one at a time.
+If a module is not found, *rmmod* will immediately exit with an error code.
+Should the module removal fail, the program will log an error AND continue with
+the next module. This behaviour is NOT controlled by the *--force* option.
# OPTIONS
static void help(void)
{
printf("Usage:\n"
- "\t%s [options] modulename ...\n"
+ "\t%s [options] [list of modulenames]\n"
"Options:\n"
"\t-f, --force DANGEROUS: forces a module unload and may\n"
"\t crash your machine\n"