I'm attaching a small demonstration module that uses the Inotify
kernel API from my patch, in case anyone is interested.
It takes a watch path (file or directory) as a parameter on init:
# insmod imod.ko watch_path=/tmp/foo
This is just a simple client, so the file/directory must exist. :-)
Regards,
Amy