[Toybox] [PATCH] rmmod: various fixes.

enh enh at google.com
Sat Sep 11 10:25:50 PDT 2021


i'm not usually a pro-bloat kind of guy, but whenever i'm dealing with
modules i wish the kernel just came with example1.ko and example2.ko for me
to mess around with without actually causing any problems!

On Sat, Sep 11, 2021 at 10:02 AM Rob Landley <rob at landley.net> wrote:

> On 9/10/21 6:10 PM, enh via Toybox wrote:
> > My original intent was to just get rid of the meaningless O_EXCL, which
> > isn't used by the kernel, after noticing that it's passed here but not
> > in modprobe's module removal code.
> >
> > But then I noticed that other rmmod implementations allow you to pass a
> > list of modules, not just one (whereas we were ignoring all but the
> > first). And that the help syntax was wrong. And that strend() lets us
> > write the code to remove the ".ko" suffix a bit nicer.
>
> Applied.
>
> Modules are one of the things I need the mkroot+qemu test system to
> regression
> test. (I'm actually reasonably close to getting that test setup working.
> The
> blocker's been the shell, and toysh can run some reasonable scripts now...)
>
> Rob
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20210911/d45f6880/attachment-0001.htm>


More information about the Toybox mailing list