[BusyBox] rmmod difficulties
Travis J
tolkien64 at yahoo.com
Mon Jul 26 18:11:28 UTC 2004
Note that I'm using rc2. Important info.
--- Travis J <tolkien64 at yahoo.com> wrote:
> I'm wondering if this is a problem with bb's rmmod or I'm not doing this correctly, maybe
> someone
> has some insight.
>
> I'm just insmod'ing and rmmod'ing a really simple LKM. The insmod'ing and lsmod'ing work great.
>
> --------------------------------------[Output]-----------------------------------
> $ lsmod
> Module Size Used by Not tainted
> $ insmod dummy_mod.ko
> Using dummy_mod.ko
> <dummy> loading test module
> <dummy> page size: 0x1000
> <dummy> host_mem_addr:0x2100224
> $ lsmod
> Module Size Used by Not tainted
> dummy_mod 1096 - - Live 0xbf000000
> $ echo "yay for busybox"
> yay for busybox
> --------------------------------------[/Output]----------------------------------
>
> But when I try to rmmod I get this message:
>
> --------------------------------------[Output]-----------------------------------
> $ rmmod dummy_mod
> rmmod: dummy_mod: Function not implemented
> --------------------------------------[/Output]----------------------------------
>
> Here's the source for the module, extremely simple to minimize the problem space.
>
> --------------------------------------[Source]-----------------------------------
> #include <linux/module.h> /* b/c it's a module */
> #include <linux/config.h> /* b/c it's a module */
> #include <linux/init.h> /* b/c it's a module */
>
>
> MODULE_LICENSE("GPL");
> MODULE_DESCRIPTION("DummyMod LKM, LKM testing module");
>
> #define DMA "<dummy> "
>
> /**************************
> *
> * Entry point to module
> *
> *************************/
>
> static int dummy_mod_entry_point() {
>
> printk(DMA "loading dummy module\n");
> printk(DMA "page size: 0x%X\n", (unsigned int)PAGE_SIZE);
> return 1;
> }
>
> /**************************
> *
> * cleanup code for module
> *
> *************************/
> static void dummy_mod_exit_point() {
> printk(DMA "unloading DMA module\n");
> }
>
> module_init(dummy_mod_entry_point);
> module_exit(dummy_mod_exit_point);
> --------------------------------------[/Source]----------------------------------
>
> What's up fellas?
>
> -Travis
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - 50x more storage than other providers!
> http://promotions.yahoo.com/new_mail
> > _______________________________________________
> busybox mailing list
> busybox at mail.busybox.net
> http://busybox.net/mailman/listinfo/busybox
>
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail
More information about the busybox
mailing list