I think you're confusing "const" with "static". Static variables have file scope but are writable. You'll notice that I generally declare all module parameters as static, not just pc_debug. And this does work. If you really get a segfault (i.e., you run "insmod ... pc_debug=#" and get a core dump, not a kernel trap), then my guess would be that the problem is in your modutils. I don't have any problems with this with the 2.1.121 modutils. -- Dave |
Messages