Re: [osol-code] passing properties or parameters to kernel modules

2007-05-21 Thread Paul Durrant
On 21/05/07, Thomas De Schampheleire <[EMAIL PROTECTED]> wrote: The exact location (/proc or elsewhere) is no point for me, but I do find this mechanism an extremely useful feature. You could try running mdb -wk and then patching globals in your module from there. Paul -- Paul Durrant http

Re: [osol-code] passing properties or parameters to kernel modules

2007-05-21 Thread Darren J Moffat
Thomas De Schampheleire wrote: On 5/21/07, Darren J Moffat <[EMAIL PROTECTED]> wrote: Thomas De Schampheleire wrote: > You're right that this probably is the cleanest solution. > > However, this does not work for anything other than a debug parameter > right? Suppose I want to communicate with t

Re: [osol-code] passing properties or parameters to kernel modules

2007-05-21 Thread Thomas De Schampheleire
On 5/21/07, Darren J Moffat <[EMAIL PROTECTED]> wrote: Thomas De Schampheleire wrote: > You're right that this probably is the cleanest solution. > > However, this does not work for anything other than a debug parameter > right? Suppose I want to communicate with the module, for something > else.

Re: [osol-code] passing properties or parameters to kernel modules

2007-05-21 Thread Darren J Moffat
Thomas De Schampheleire wrote: You're right that this probably is the cleanest solution. However, this does not work for anything other than a debug parameter right? Suppose I want to communicate with the module, for something else. How can I do this? An ioctl on the drivers device node, eg:

Re: [osol-code] passing properties or parameters to kernel modules

2007-05-21 Thread Thomas De Schampheleire
You're right that this probably is the cleanest solution. However, this does not work for anything other than a debug parameter right? Suppose I want to communicate with the module, for something else. How can I do this? In Linux, drivers and modules can use the /proc filesystem to pass informat

Re: [osol-code] passing properties or parameters to kernel modules

2007-05-21 Thread Darren J Moffat
Thomas De Schampheleire wrote: Basically, I would like to be able to pass a debug_level parameter to my module, that determines the amount of messages that will pass on the console. If there is another way to achieve this, that is fine for me as well. Rather than using console debugging it migh

Re: [osol-code] passing properties or parameters to kernel modules

2007-05-19 Thread James C. McPherson
Thomas De Schampheleire wrote: Hi, Device drivers can use functions like ddi_prop_get_int(xx_dev, xx_dip, 0, "width", XX_DEFAULT_WIDTH); to retrieve configurations from their driver.conf file. I am wondering whether a similar mechanism can be used for kernel modules. I am not sure which values

[osol-code] passing properties or parameters to kernel modules

2007-05-19 Thread Thomas De Schampheleire
Hi, Device drivers can use functions like ddi_prop_get_int(xx_dev, xx_dip, 0, "width", XX_DEFAULT_WIDTH); to retrieve configurations from their driver.conf file. I am wondering whether a similar mechanism can be used for kernel modules. I am not sure which values I would need to put in as dev_t