drm_vma_offset_manager_init — Initialize new offset-manager
void drm_vma_offset_manager_init ( | struct drm_vma_offset_manager * mgr, |
unsigned long page_offset, | |
unsigned long size) ; |
mgr
Manager object
page_offset
Offset of available memory area (page-based)
size
Size of available address space range (page-based)
Initialize a new offset-manager. The offset and area size available for the
manager are given as page_offset
and size
. Both are interpreted as
page-numbers, not bytes.
Adding/removing nodes from the manager is locked internally and protected against concurrent access. However, node allocation and destruction is left for the caller. While calling into the vma-manager, a given node must always be guaranteed to be referenced.