Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
(solved) How to pass module-parameters to in-kernel-driver?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
ctschmidt
n00b
n00b


Joined: 24 Apr 2007
Posts: 8

PostPosted: Fri Apr 27, 2007 4:37 pm    Post subject: (solved) How to pass module-parameters to in-kernel-driver? Reply with quote

Hello again everyone,

when I compile a certain driver (lets say sndhda-intel) into the kernel (i.e. not as a module), how do I pass parameters to that driver that I would usually pass to the module using modprobe?

As an example:
When I compile snd-hda-intel as a module I would usually call it up using
Code:
modprobe snd-hda-intel model=acer


Now, when I compile snd-hda-intel into the kernel - how do I pass the module=acer parameter to the kernel driver?

Thanks in advance, best regards,
Christian.


Last edited by ctschmidt on Fri Apr 27, 2007 5:52 pm; edited 1 time in total
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2421
Location: UK

PostPosted: Fri Apr 27, 2007 4:53 pm    Post subject: Reply with quote

From Documentation/kernel-parameters.txt
Quote:
Module parameters for modules that are built into the kernel image are specified on the kernel command line with the module name plus '.' plus parameter name, with '=' and value if appropriate, such as:

usbcore.blinkenlights=1
so you would need
Code:
snd_hda_intel.model=acer
I've only recently discovered this so you are benefiting from fresh knowledge :)
_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
ctschmidt
n00b
n00b


Joined: 24 Apr 2007
Posts: 8

PostPosted: Fri Apr 27, 2007 5:52 pm    Post subject: Reply with quote

sad thing is: i've read that text at least twice. need-more-concentration-syrup.... ;-)
thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum