Skip to content

Commit 4b636dc

Browse files
jprvitajmberg-intel
authored andcommitted
rfkill: Move "state" sysfs file back to stable
There is still quite a bit of code using this interface, so we can't just remove it. Hopefully it will be possible in the future, but since its scheduled removal date is past 2 years already, we are better having the documentation reflecting the current state of things. Signed-off-by: João Paulo Rechi Vita <[email protected]> Signed-off-by: Johannes Berg <[email protected]>
1 parent 26b359c commit 4b636dc

File tree

2 files changed

+22
-23
lines changed

2 files changed

+22
-23
lines changed

Documentation/ABI/obsolete/sysfs-class-rfkill

Lines changed: 0 additions & 20 deletions
This file was deleted.

Documentation/ABI/stable/sysfs-class-rfkill

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ For details to this subsystem look at Documentation/rfkill.txt.
55
For the deprecated /sys/class/rfkill/*/claim knobs of this interface look in
66
Documentation/ABI/removed/sysfs-class-rfkill.
77

8-
For the deprecated /sys/class/rfkill/*/state knobs of this interface look in
9-
Documentation/ABI/obsolete/sysfs-class-rfkill.
10-
118
What: /sys/class/rfkill
129
Date: 09-Jul-2007
1310
KernelVersion: v2.6.22
@@ -44,6 +41,28 @@ Values: A numeric value.
4441
1: true
4542

4643

44+
What: /sys/class/rfkill/rfkill[0-9]+/state
45+
Date: 09-Jul-2007
46+
KernelVersion v2.6.22
47+
48+
Description: Current state of the transmitter.
49+
This file was scheduled to be removed in 2014, but due to its
50+
large number of users it will be sticking around for a bit
51+
longer. Despite it being marked as stabe, the newer "hard" and
52+
"soft" interfaces should be preffered, since it is not possible
53+
to express the 'soft and hard block' state of the rfkill driver
54+
through this interface. There will likely be another attempt to
55+
remove it in the future.
56+
Values: A numeric value.
57+
0: RFKILL_STATE_SOFT_BLOCKED
58+
transmitter is turned off by software
59+
1: RFKILL_STATE_UNBLOCKED
60+
transmitter is (potentially) active
61+
2: RFKILL_STATE_HARD_BLOCKED
62+
transmitter is forced off by something outside of
63+
the driver's control.
64+
65+
4766
What: /sys/class/rfkill/rfkill[0-9]+/hard
4867
Date: 12-March-2010
4968
KernelVersion v2.6.34

0 commit comments

Comments
 (0)