lkml.org 
[lkml]   [2005]   [Oct]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: 26 ways to set a device driver variable from userland
On Wednesday October 19, cfriesen@nortel.com wrote:
> Kyle Moffett wrote:
>
> >> (4) sysfs
>
> > This is ideal for almost all device driver purposes.
>
> The one thing that I have yet to see a good solution for is
> transaction-based operations, where userspace passes in something (could
> be a command, a new value, a query, etc.) and expects some data in return.
>

knfsd does this sort of stuff with it's own tiny filesystem.

If you look in fs/libfs.c you will see a section headed
Transaction based IO
which is exactly for this sort of thing.

Currently I think you need to create your own tiny filesystem (which
isn't much effort if you use the stuff in libfs).

I think I'd like this sort of file to be a standard option for sysfs
attributes, but I haven't looked seriously into the possibility yet.

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

\
 
 \ /
  Last update: 2005-10-20 01:53    [W:0.041 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site