This option causes *modprobe* to remove the mentioned module(s), alongside
other modules that depend on it/them - aka the reverse dependency list.
+ For compatibility reasons *--remove-dependencies* is also accepted for
+ this option but will be removed after kmod 36.
+
*-w* _TIMEOUT_MSEC_, *--wait* _TIMEOUT_MSEC_
This option causes *modprobe -r *to continue trying to remove a module
if it fails due to the module being busy, i.e. its refcount is not 0 at
{ "all", no_argument, 0, 'a' },
{ "remove", no_argument, 0, 'r' },
- { "remove-dependencies", no_argument, 0, 5 },
+ { "remove-dependencies", no_argument, 0, 7 },
{ "remove-holders", no_argument, 0, 5 },
{ "wait", required_argument, 0, 'w' },
"\t be a module name to be inserted\n"
"\t or removed (-r)\n"
"\t-r, --remove Remove modules instead of inserting\n"
- "\t --remove-dependencies Deprecated: use --remove-holders\n"
"\t --remove-holders Also remove module holders (use together with -r)\n"
"\t-w, --wait MSEC When removing a module, wait up to MSEC for\n"
"\t module's refcount to become 0 so it can be\n"
case 'r':
do_remove = 1;
break;
+ case 7:
+ WRN("--remove-dependencies is deprecated and scheduled for removal; use --remove-holders\n");
+ /* fall through */
case 5:
remove_holders = 1;
break;