Re: read() on relayfs channel returns premature 0

Jan Engelhardt
2005-03-24T19:49:44Z

>BTW, I just want to point out that there aren't any problems with
>read() in the version of relayfs included in the -mm tree (i.e. the
>'redux' version), since of course it doesn't support read().

Hm? Relayfs does not support a `cat /dev/relay/AChannelName` anymore?

>I'll continue maintaining the old relayfs for existing users (so
>thanks for the patch and the test code) so if the new version doesn't
>fit your needs, you'll still have the old version to fall back on.

Do you have the "new relayfs" as a "normal" file (outside any revision
control system), e.g. a diff patch?

>Hopefully the new version will still be useful for what you're trying to do
>- your old version used 'packet' mode with read(). The new relayfs
>only supports 'bulk' mode with mmap()
>- your old version used a single buffer, while the new relayfs only
>supports per-cpu buffers
>(BTW, the new relayfs doesn't have an option any longer to do automatic
>timestamping either).

I wanted to port the kernel side of my keylogger over to relayfs, but given
that API and functionality have now changed I am somewhat reluctant to do it.

Jan Engelhardt
--