> > 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/