Am 14.01.2014 10:52, schrieb Jacob Carlborg:
On 2014-01-14 10:20, Benjamin Thaut wrote:
Yes, thats the usual approach. But that means that you have to copy them
to a other space before pinning, or allocate them in a space that allows
pinning in the first place.
Is there a problem to allocate them in the correct space from the
beginning?
Well you have to know it at allocation time. If you have a function that
takes a blob of data as argument and passes it to C, the caller does not
know of the requirement and you (maybe) have to copy inside the callee.
Kind Regards
Benjamin Thaut