Re: Passing Parameters to Module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks but I have googled and read that document.  I was having problems
so I thought that I would post to the list.  One problem I was having was
that I wanted to pass two parameters, and then use another variable to
store those parameters multiplied together.  I get an error that says:

initializer element is not a constant

Also, I know how to store values on startup, but I do not know how to pass
values to the module upon startup.  Is there anyone that can actually help
me?

> Hi,
>
> check out http://www.faqs.org/docs/kernel/
> specifically 2.6
>
> Give google a try before putting on the list.
>
> HTH,
> Aniruddha Patwardhan
> http://aniruddha.talk.to
>
> On Wed, 2003-10-22 at 08:06, Josh Berry wrote:
>> I am playing around with writing basic Loadable Modules and am trying to
>> figure out how to write the module to accept parameters at load time.
>> Like insmode <module_name> <parameters>.
>>
>> A Simple Example:
>>
>> Load the module and pass it the parameter of 100 and 10, the module
>> divides 100 by ten, and then inputs the value to a syslog facility
>> (printk(KERN_ALERT "%d", value);
>>
>> This is probably an incredibly simple exercise, but I am very new to
>> playing with kernel development.
>>
>> Thanks
>> --
>> Kernelnewbies: Help each other learn about the Linux kernel.
>> Archive:       http://mail.nl.linux.org/kernelnewbies/
>> FAQ:           http://kernelnewbies.org/faq/
>>
>
>
>


Thanks,
Josh Berry, CTO
LinkNet-Solutions
469-831-8543
josh.berry@linknet-solutions.com

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux