lkml.org 
[lkml]   [1998]   [Jan]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectNeed help with performance hack
Date
Hi

I'm being lazy again. I haven't found what I'm looking for, but I
probably haven't tried hard enough.

I need a pair of functions (or macros)

int input_to_user( int port, char * buf, int len)
int output_from_user( char * buf, int port, int len)

which combine the functionality of insl and outsl with copy_to/from_user,
that is, they will move blocks of data to/from a 4-byte i/o port
directly from/to userland.

Also, if I understand copy_*_user, they will also work if the "user"
buffer happens to be in kernel space. The same should also be true
of these functions.

Do we have anything like this lurking in some dark corner of the kernel ?

--------------------------------------------------------------------------
Grant R. Guenther grant@torque.net
--------------------------------------------------------------------------

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