>>> Thomas Schlichter <firstname.lastname@example.org> 12.10.09 20:32 >>>
This won't work if phys_addr or size aren't page aligned, or if size isn't
a power of two.
Similarly, this requires numpages to be a power of two.
I think user mode code handles this by splitting the request and trying to
establish as many entries as possible (and those as big as possible).
Also, in all cases you pass 'false' for the 'increment' parameter, in order
to avoid having to tear down the established entries. While this may be
reasonable for kernel initiated mappings, I don't think that's acceptable
for such originating from user mode.