lkml.org 
[lkml]   [1999]   [Nov]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: map_user_kiobuf question

On Fri, 5 Nov 1999, Douglas Gilbert wrote:

> > What type of address gets passed to the third argument of
> > map_user_kiobuf?
> >
> > can I do something like
> >
> > addr = vmalloc (size);
> > ...
> > map_user_kiobuf (xxx, iobuf, (unsigned long) addr, xxx);

> An address from the user space. For example the 2nd argument of
> a read() [both the user space system call and a character device
> read]. Not sure about the vmalloc() aspect.

the address has to be a user-space address. vmalloc()-ed addresses are
handled differently and separately from user-space addresses.
map_user_kiobufs right now operate exclusively on user-space virtual
addresses. Maybe a map_vmalloc_kiobuf() function should be provided as
well?

-- mingo


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

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