Hi,
I am trying to create a file system driver with support for live
notifications.
That is, when ever an application changes any portion of the data in an open
file, all other processes that has opened the same file should get notified
about the changes. (Similar to directory change notifications, but at a more
granular level of files.)
It seems all that i need to do is raise a notification in the IOWrite event
of my driver.
But I could not get how the kernel driver can inform the user mode
applications about the changes.
Should I have a user mode function that regularily polls the kernel
driver for the changes?
Or is there any way the user mode applications can "register" for some
callback and the kernel driver can invoke the callbacks right from the
IOWrite call ?
Which way is good/easy to implement?
Any guidance is greatly appreciated.
Yours,
P.Gopalakrishna.