Messages in this thread | | | Date | Sat, 06 Nov 1999 04:49:42 -0500 | From | Jeff Garzik <> | Subject | Re: map_user_kiobuf question |
| |
Ingo Molnar wrote: > 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?
Considering that vmalloc'd addresses are global as your other e-mail mentions, that would be very useful for me at least :)
-- Jeff Garzik | Just once, I wish we would encounter Building 1024 | an alien menace that wasn't immune to MandrakeSoft, Inc. | bullets. -- The Brigadier, "Dr. Who"
- 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/
| |