[Bug 343] New: rmmod bug when use modprob-small.c

bugzilla at busybox.net bugzilla at busybox.net
Fri May 22 02:53:07 UTC 2009


https://bugs.busybox.net/show_bug.cgi?id=343

              Host: Linux chenee 2.6.28-12-generic #43-Ubuntu SMP Fri May 1
                    19:27:06 UTC 2009 i686 GNU/Linux
            Target: Linux (none) 2.6.24.7 #233 PREEMPT Fri May 22 10:11:14
                    CST 2009 armv6l GNU/Linux
           Summary: rmmod bug when use modprob-small.c
           Product: Busybox
           Version: unspecified
          Platform: All
        OS/Version: Linux
            Status: NEW
          Keywords: FIXME
          Severity: enhancement
          Priority: P5
         Component: Other
        AssignedTo: unassigned at busybox.net
        ReportedBy: chenee543216 at gmail.com
                CC: busybox-cvs at busybox.net
   Estimated Hours: 0.0


bug: "is this a bug or mis-use? "
It always tell me "rmmod module XXX not found",when I use "insmod" and "rmmod".
maybe the variable "info" not consider to using "rmmod" directly?
-----
file:busybox/modutils/modprobe-small.c
line:584

code:
>    if (!info) {
>        /* both dirscan and find_alias found nothing */
>        if (applet_name[0] != 'd') /* it wasn't depmod */
>            bb_error_msg("module '%s' not found", name);
>//TODO: _and_die()?
>        goto ret;
>    }
-------
output:
># insmod simple-lkm.ko
>my_module_init called.  Module is now loaded.
># rmmod simple-lkm.ko
>my_module_cleanup called.  Module is now unloaded.
>rmmod module simple-lkm not found

-------
test module file:
>/* Defines the license for this LKM */
>MODULE_LICENSE("GPL");
>/* Init function called on module entry */
>int my_module_init( void )
>{
          printk(KERN_INFO "my_module_init called.  Module is now loaded.\n");
            return 0;
>}
>/* Cleanup function called on module exit */
>void my_module_cleanup( void )
>{
>          printk(KERN_INFO "my_module_cleanup called.  Module is now >unloaded.\n");
>            return;
>}
>/* Declare entry and exit functions */
>module_init( my_module_init );
>module_exit( my_module_cleanup );


-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list