diff options
author | Pauli Nieminen <suokkos@gmail.com> | 2010-02-01 19:11:15 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-02-23 09:46:20 +1000 |
commit | 7a9f0dd9c49425e2b0e39ada4757bc7a38c84873 (patch) | |
tree | 67620d1185e173ac84d27a686bab381cb916b754 /README | |
parent | d594e46ace22afa1621254f6f669e65430048153 (diff) | |
download | linux-stable-7a9f0dd9c49425e2b0e39ada4757bc7a38c84873.tar.gz linux-stable-7a9f0dd9c49425e2b0e39ada4757bc7a38c84873.tar.bz2 linux-stable-7a9f0dd9c49425e2b0e39ada4757bc7a38c84873.zip |
drm: Add generic multipart buffer.
Allocating multiple pages of memory for data that is coming
from user space may fail. To fix memory allocation failures
the buffer object should be split to multiple independ pages.
drm buffer provides generic interface to copy and process
large data arrays from user space.
Interface includes allocation and free functions to allocate
the buffer object and data storage pages.
All access operations are performed relative to a internal
pointer which is advanced with drm_buffer_advance function.
The buffer can be accessed using drm_buffer_pointer_to_XXX
functions if it is known that requested object doesn't split
over a page boundary. These functions don't do any error
checking to maximize performance.
If there is large object which could be split there is special
drm_buffer_read_object function. drm_buffer_read_object takes
a pointer as argument which is used as temporary store for
data if it is split over boundary in the buffer.
Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions