Unmapped I/O
Poul-Henning Kamp
phk at phk.freebsd.dk
Wed Dec 19 18:47:25 UTC 2012
--------
In message <20121219183600.GX71906 at kib.kiev.ua>, Konstantin Belousov writes:
>> Wrong, a Adaptec 1542 could DMA directly into or out of any spot
>> of memory and that could have been mapped in userland but not in
>> kernel.
>
>And how this can be used while keeping on-disk data coherent with the
>buffer ?[...]
You simply don't care about the kernel buffer (most of the time).
The kernel doesn't need to see the data, all it has to do is move
it from disk to userland.
Of course there are boundary issues and cornercases that
need to be handled, for instance if userland does not issue requests
which are disk-sector-integral, in which case the buffers will be
needed, but for the common case, they will not be necessary.
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
More information about the freebsd-arch
mailing list