[lkml]   [2002]   [Feb]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] read() from driverfs files can read more bytes

On Thu, 7 Feb 2002, Alexander Viro wrote:

> On Thu, 7 Feb 2002, Patrick Mochel wrote:
> > It is really nice, but it's too much for the common case. The goal is to
> > have each file export one and only one value. Setting up an iterator is
> > overkill for one value.
> You don't have to use the iterator side of that.

Well, I'll be...

I like the seq_ stuff, and the ->read() side of things take care of the
issues discussed in this thread. What's even nicer is that if I convert to
that, driver callbacks become something like either:

int driver_show(struct device * dev, struct seq_file * m)


int driver_show(struct device * dev, char * buf)

Have you considered doing write()?


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:24    [W:0.035 / U:8.068 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site