batman-adv: add wrapper function to throw uevent in userspace
authorAntonio Quartulli <ordex@autistici.org>
Tue, 26 Apr 2011 16:26:01 +0000 (18:26 +0200)
committerSven Eckelmann <sven@narfation.org>
Mon, 20 Jun 2011 09:37:33 +0000 (11:37 +0200)
commitc6bda689c2c94788e1e567463ce861d1f135857f
treeb2876d0b57ee5de081cf612420644e39dc4b78c0
parent7683fdc1e88644ee8108a1f33faba80545f0024d
batman-adv: add wrapper function to throw uevent in userspace

Using throw_uevent() is now possible to trigger uevent signal that can
be recognised in userspace. Uevents will be triggered through the
/devices/virtual/net/{MESH_IFACE} kobject.

A triggered uevent has three properties:
- type: the event class. Who generates the event (only 'gw' is currently
  defined). Corresponds to the BATTYPE uevent variable.
- action: the associated action with the event ('add'/'change'/'del' are
  currently defined). Corresponds to the BATACTION uevent variable.
- data: any useful data for the userspace. Corresponds to the BATDATA
  uevent variable.

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
net/batman-adv/bat_sysfs.c
net/batman-adv/bat_sysfs.h
net/batman-adv/main.h