Re: userspace notification from module

From: Daniel Borkmann
Date: Sat Jan 02 2010 - 07:37:22 EST


Hi BartÅomiej,

BartÅomiej ZimoÅ wrote:
> Use inotify from userspace could be interesting for such data,
> but looks like sysfs/procfs doesn't send signal about data changed in file or maybe i'm wrong?
>
> If sysfs/procfs is wrong for that so must create device file, but here secound problem
> how to notify that file/buffer has new data?

Actually, the file content of a procfs file is volatile and generated on
the fly, just have a look at some device drivers or at the API.

Did you have a look at the netlink protocol for communication from
kernel to userspace?

Cheers,
Daniel
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/