Re: [android-kernel] alert notification from kernel

2011-11-04 Thread Durgadoss Ramanathan
Hi Andria, You can Poll from the User Space using "Handlers" as Preetam mentioned. But "Polling" is bad. Instead you can use UEvents. The ideal (Android) way would be: 1. Let your kernel module send an UEvent, whenever the alert raises. This can be done by KOBJ_UEVENT(,,.,,) 2. Create a Simp

Re: [android-kernel] alert notification from kernel

2011-11-03 Thread preetam m.n
as said below create a sysfs entries for the aleart. 1. for checking for the alert (it could be something like toggling the switch- saying true or 1 when you have a message and false or 0 when no message). 2. for message create a handler in the android stack to watch 1st sysfs entry to check for

Re: [android-kernel] alert notification from kernel

2011-11-01 Thread Tiago Maluta
you can create a file [1] as a sysfs entry on your system, create a android service pooling that information and display to user. [1] example: you can create a "notifications" file and put printk content. $ cat /sys/kernel/notifications YOUR MESSAGE --tm On Fri, Oct 28, 2011 at 11:05

[android-kernel] alert notification from kernel

2011-10-28 Thread andria
Hi, I work on a kernel module that sometimes raises an alert thanks to printk. I want to improve it by raising the alert in the user space like a notification in the status bar. Does anyone know how this can be done? One way to do it is to do like the sms notification because as far as I know ther