aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>2008-01-08 10:02:55 -0500
committerLen Brown <len.brown@intel.com>2008-02-01 22:26:08 -0500
commit50ebec09f1a79df27afeceb14a3059944f327e1d (patch)
tree4d368a7c03f4e08bc6a0368385bacceffced6931 /Documentation
parent013c40e457ac573b29daa0e369c2ba6729c23557 (diff)
ACPI: thinkpad-acpi: add poll() support to some sysfs attributes
Implement poll()/select() support through sysfs_notify() for some key attributes which userspace might want to poll() or select() on. In order to let userspace know poll()/select() support is available for an attribute, the thinkpad-acpi sysfs interface version is also bumped up. Further changes that add poll()/select() capabilities to any pre-existing attributes will also increment the sysfs interface version. Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/thinkpad-acpi.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/Documentation/thinkpad-acpi.txt b/Documentation/thinkpad-acpi.txt
index e1c4550dac99..9bbd0f541437 100644
--- a/Documentation/thinkpad-acpi.txt
+++ b/Documentation/thinkpad-acpi.txt
@@ -311,6 +311,8 @@ sysfs notes:
311 disabled" postition, and 1 if the switch is in the 311 disabled" postition, and 1 if the switch is in the
312 "radios enabled" position. 312 "radios enabled" position.
313 313
314 This attribute has poll()/select() support.
315
314 hotkey_report_mode: 316 hotkey_report_mode:
315 Returns the state of the procfs ACPI event report mode 317 Returns the state of the procfs ACPI event report mode
316 filter for hot keys. If it is set to 1 (the default), 318 filter for hot keys. If it is set to 1 (the default),
@@ -332,6 +334,8 @@ sysfs notes:
332 undock. Set to zero for normal wake-ups or wake-ups 334 undock. Set to zero for normal wake-ups or wake-ups
333 due to unknown reasons. 335 due to unknown reasons.
334 336
337 This attribute has poll()/select() support.
338
335 wakeup_hotunplug_complete: 339 wakeup_hotunplug_complete:
336 Set to 1 if the system was waken up because of an 340 Set to 1 if the system was waken up because of an
337 undock or bay ejection request, and that request 341 undock or bay ejection request, and that request
@@ -340,6 +344,8 @@ sysfs notes:
340 user's choice. Refer to HKEY events 0x4003 and 344 user's choice. Refer to HKEY events 0x4003 and
341 0x3003, below. 345 0x3003, below.
342 346
347 This attribute has poll()/select() support.
348
343input layer notes: 349input layer notes:
344 350
345A Hot key is mapped to a single input layer EV_KEY event, possibly 351A Hot key is mapped to a single input layer EV_KEY event, possibly
@@ -1354,3 +1360,6 @@ Sysfs interface changelog:
1354 NVRAM polling patch). Some development snapshots of 1360 NVRAM polling patch). Some development snapshots of
1355 0.18 had an earlier version that did strange things 1361 0.18 had an earlier version that did strange things
1356 to hotkey_mask. 1362 to hotkey_mask.
1363
13640x020200: Add poll()/select() support to the following attributes:
1365 hotkey_radio_sw, wakeup_hotunplug_complete, wakeup_reason