Discussion:
[PATCH] Remove "rmmod -w" documentation and getopt entry
Stephen Kitt
2014-01-26 13:46:07 UTC
Permalink
Hi,

The changelog for version 11 mentions that the "--wait" option on rmmod is no
longer documented, but it still appears in rmmod.xml. In addition, the getopt
handling in rmmod.c no longer supports "-w" or "--wait", but the cmdopts
declaration still includes it.

This patch removes the cmdopts declaration and the documentation.

Signed-off-by: Stephen Kitt <steve-***@public.gmane.org>

diff --git a/man/rmmod.xml b/man/rmmod.xml
index d9a6295..14c94dd 100644
--- a/man/rmmod.xml
+++ b/man/rmmod.xml
@@ -39,7 +39,6 @@
<cmdsynopsis>
<command>rmmod</command>
<arg><option>-f</option></arg>
- <arg><option>-w</option></arg>
<arg><option>-s</option></arg>
<arg><option>-v</option></arg>
<arg><replaceable>modulename</replaceable></arg>
@@ -94,22 +93,6 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><option>-w</option> <option>--wait</option>
- </term>
- <listitem>
- <para>
- Normally, <command>rmmod</command> will refuse to unload modules
- which are in use. With this option, <command>rmmod</command> will
- isolate the module, and wait until the module is no longer used.
- Nothing new will be able to use the module, but it's up to you to
- make sure the current users eventually finish with it. See
- <citerefentry>
- <refentrytitle>lsmod</refentrytitle><manvolnum>8</manvolnum>
- </citerefentry>) for information on usage counts.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
<term>
<option>-s</option>
</term>
diff --git a/tools/rmmod.c b/tools/rmmod.c
index fd0fac5..df2f041 100644
--- a/tools/rmmod.c
+++ b/tools/rmmod.c
@@ -40,7 +40,6 @@ static const struct option cmdopts[] = {
{"syslog", no_argument, 0, 's'},
{"verbose", no_argument, 0, 'v'},
{"version", no_argument, 0, 'V'},
- {"wait", no_argument, 0, 'w'},
{"help", no_argument, 0, 'h'},
{NULL, 0, 0, 0}
};
Lucas De Marchi
2014-01-26 20:05:58 UTC
Permalink
Hi Stephen,
Post by Stephen Kitt
Hi,
The changelog for version 11 mentions that the "--wait" option on rmmod is no
longer documented, but it still appears in rmmod.xml. In addition, the getopt
handling in rmmod.c no longer supports "-w" or "--wait", but the cmdopts
declaration still includes it.
This patch removes the cmdopts declaration and the documentation.
diff --git a/man/rmmod.xml b/man/rmmod.xml
index d9a6295..14c94dd 100644
--- a/man/rmmod.xml
+++ b/man/rmmod.xml
@@ -39,7 +39,6 @@
<cmdsynopsis>
<command>rmmod</command>
<arg><option>-f</option></arg>
- <arg><option>-w</option></arg>
<arg><option>-s</option></arg>
<arg><option>-v</option></arg>
<arg><replaceable>modulename</replaceable></arg>
@@ -94,22 +93,6 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><option>-w</option> <option>--wait</option>
- </term>
- <listitem>
- <para>
- Normally, <command>rmmod</command> will refuse to unload modules
- which are in use. With this option, <command>rmmod</command> will
- isolate the module, and wait until the module is no longer used.
- Nothing new will be able to use the module, but it's up to you to
- make sure the current users eventually finish with it. See
- <citerefentry>
- <refentrytitle>lsmod</refentrytitle><manvolnum>8</manvolnum>
- </citerefentry>) for information on usage counts.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
<term>
<option>-s</option>
</term>
diff --git a/tools/rmmod.c b/tools/rmmod.c
index fd0fac5..df2f041 100644
--- a/tools/rmmod.c
+++ b/tools/rmmod.c
@@ -40,7 +40,6 @@ static const struct option cmdopts[] = {
{"syslog", no_argument, 0, 's'},
{"verbose", no_argument, 0, 'v'},
{"version", no_argument, 0, 'V'},
- {"wait", no_argument, 0, 'w'},
{"help", no_argument, 0, 'h'},
{NULL, 0, 0, 0}
};
I rebased this patch on git and applied. Note that we are already on
kmod 16... version 11 is old.


thanks

Lucas De Marchi
Stephen Kitt
2014-01-26 21:58:47 UTC
Permalink
Hi Lucas,

On Sun, 26 Jan 2014 18:05:58 -0200, Lucas De Marchi
Post by Lucas De Marchi
I rebased this patch on git and applied. Note that we are already on
kmod 16... version 11 is old.
Thanks! I know kmod 16 is the current version, in fact my patch was based on
a git clone of git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git made
this afternoon (3d51a2f). I mentioned kmod 11 because that's when the
changelog mentioned the change to rmmod.

Regards,

Stephen

Loading...