Caching the results of acpi_get_handle() in a driver: is it valid?

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

 



The code I inherited in ibm-acpi does heavy caching of acpi_get_handle()
results.  It stores the results of acpi_get_handle() for a number of nodes
at module init, and uses the stored results during its lifetime.

Is that a valid use of the handles returned by acpi_get_handle()?  In
particular, what happens to handlers when a SSDT gets loaded or unloaded at
runtime?  Do handles that came from the DSDT change?  What if the handler
was to a node in the SSDT being unloaded?  What if the handler is overriden
by a new loaded SSDT?

While the vast majority of the handlers ibm-acpi caches are in the DSDT and
very unlikely to change through a SSDT load, I'd still like to make sure the
driver is doing the right thing...

PS: not caching the results is always possible, but that will mean various
calls to acpi_get_handle() per second.

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
ibm-acpi-devel mailing list
ibm-acpi-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel

[Index of Archives]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Photo]     [Yosemite Photos]     [Yosemite Advice]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]

  Powered by Linux