Re: Problem with map_user_kiobuf() not mapping to physical memory

From: Gerd Knorr (kraxel@bytesex.org)
Date: Wed May 02 2001 - 14:17:51 EST


> to the driver which performs a map_user_kiobuf() on it, the resulting
> kiobuf
> structure has all of the pagelist[] physical address entries set to the
> same value
> and the maplist[] entries set to 0. The devices access to this memory
> now
> causes system problems.
> Is map_user_kiobuf() working correctly ?

Yes, it is. You have to lock down the pages for I/O with
lock_kiovec() before using the maplist. The locking will
also fault the pages if needed.

  Gerd

-- 
sigfault (core dumped)
-
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/



This archive was generated by hypermail 2b29 : Mon May 07 2001 - 21:00:14 EST