Package: module-init-tools
Version: 3.2-pre1-2
Severity: important

first sorry, my english is bad.
i write zaptel driver (kernel module) and found that parameters passed via
modprobe command are ignored by my module.

simple sample code (aamod.c):
#include <linux/kernel.h>
#include <linux/module.h>

int param1 = 0;
module_param(param1, int, 0600);

static int __init aamod_init(void)
{
        return 0;
}

static void __exit aamod_exit(void)
{
}

module_init(aamod_init);
module_exit(aamod_exit);

if i do "modprobe aamod aaa" module is inserted, but we don't have parameter
"aaa" defined in aamod module!
i try "modprobe zaptel aaa" - it fail with "zaptel: Unknown parameter `aaa'"
message.

i add DEBUGP support to kernel/params.c in my kernel source tree.
after it with "modprobe zaptel aaa" i get message "Parsing ARGS: aaa",
with "modprobe aamod aaa" - "Parsing ARGS: " (empty string).

i use gcc-4.1 (package version 4.1.1-13), kernel 2.6.18.2 from kernel.org.
i try gcc-3.4 (package version 3.4.6-4) and kernel 2.6.16.2 with same result.

modprobe from tesing (module-init-tools 3.2.2-3) work right.

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.18.2dionis
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages module-init-tools depends on:
ii  libc6                        2.3.6.ds1-7 GNU C Library: Shared libraries

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to