<div dir="ltr"><div class="">
<p>Dear all,<br></p><p>I see that when we declare a variable as module_param from a driver, i can see it listed in <code>"/sys/module/xxx/parameters/..."</code>.</p>
<p>Ex : <code>/sys/module/usbcore/parameters/autosuspend</code></p>
<p>we can modify and read it with <code>echo</code> and <code>cat</code> commands from terminal.</p>
<p>But is there a way i can read this value from other drivers? Common
sense says it should be there because if we are able to access them from
user space, from kernel space we should definitely be able to do. Is it
so? If yes, what are the API's?</p><p><br></p><p>Posted teh same on SO - <a href="http://stackoverflow.com/questions/19973866/linux-kernel-modifying-a-module-param-variable-from-other-drivers">http://stackoverflow.com/questions/19973866/linux-kernel-modifying-a-module-param-variable-from-other-drivers</a></p>
<p><br></p><p>Reply either here or on SO.</p><p><br></p><p>Regards,</p><p>Sandeep<br></p></div></div>