bb-1.13 modutils-24.c

Timo Teräs timo.teras at iki.fi
Fri Nov 21 12:34:19 UTC 2008


Timo Teräs wrote:
> Harald Küthe wrote:
>>> Could you put the .o searching code to insmod.c instead of modutils-24.c.
>>> modutils-24.c is inteded to be only and only the module loader code for
>>> 2.4 kernels. insmod.c is the applet that calls either the 2.6 syscall
>>> or modutils-24.c depending on running kernel; thus your changes would
>>> not work on 2.6 kernels.
>> Here it is (including the vector-alloc stuff).
>> Be aware that I do not really know what I'm doing :-). Just backporting
>> the old implementation. But it works here for kernel 2.4.
> 
> Right. The modutils-24.c stuff seems to be already in SVN. And the .o
> searching code looks ok, but is a bit bloaty. I can try to clean it up
> and resend.

Ok, this is what I came up with so far.

I originally wrote the modutils replacement in accordance with
module-init-tools. In module-init-tools insmod does no attempt to search
the module from directories. But since bb used to do this, I guess we
should keep the behavior.

- Timo

-------------- next part --------------
A non-text attachment was scrubbed...
Name: bb-insmod-search.diff
Type: text/x-diff
Size: 2514 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20081121/58df525f/attachment.bin 


More information about the busybox mailing list