X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=Documentation%2Fthermal%2Fsysfs-api.txt;h=b61e46f449aa1e0bf376de21ddf2eec55c196a39;hb=0bc0be7f20efea664b7c4c1d0b1822bc8f53a8b4;hp=cb3d15bc1aeb47f2d05f00394a176c01430568e8;hpb=84abd88a70090cf00f9e45c3a81680874f17626e;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git diff --git a/Documentation/thermal/sysfs-api.txt b/Documentation/thermal/sysfs-api.txt index cb3d15b..b61e46f 100644 --- a/Documentation/thermal/sysfs-api.txt +++ b/Documentation/thermal/sysfs-api.txt @@ -278,3 +278,15 @@ method, the sys I/F structure will be built like this: |---name: acpitz |---temp1_input: 37000 |---temp1_crit: 100000 + +4. Event Notification + +The framework includes a simple notification mechanism, in the form of a +netlink event. Netlink socket initialization is done during the _init_ +of the framework. Drivers which intend to use the notification mechanism +just need to call generate_netlink_event() with two arguments viz +(originator, event). Typically the originator will be an integer assigned +to a thermal_zone_device when it registers itself with the framework. The +event will be one of:{THERMAL_AUX0, THERMAL_AUX1, THERMAL_CRITICAL, +THERMAL_DEV_FAULT}. Notification can be sent when the current temperature +crosses any of the configured thresholds.