diff options
author | Thomas Hellstrom <thellstrom-at-vmware-dot-com> | 2009-04-02 11:08:18 +0200 |
---|---|---|
committer | Thomas Hellstrom <thellstrom-at-vmware-dot-com> | 2009-04-02 11:55:28 +0200 |
commit | 68be60995de6853e1cd5b9d6f83519a9be6f99fc (patch) | |
tree | e9c7c093c3fbeed26bfe3976f3975b684a44b9a8 | |
parent | 6007cd391b5241bea1b2c037f7c1e45c3e9a3f2e (diff) |
Implement slabpool:placement.
Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
-rw-r--r-- | src/wsbm_slabpool.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/wsbm_slabpool.c b/src/wsbm_slabpool.c index 51a85d0..67205be 100644 --- a/src/wsbm_slabpool.c +++ b/src/wsbm_slabpool.c @@ -979,6 +979,12 @@ pool_offset(struct _WsbmBufStorage *buf) return pool_kernel(buf)->gpuOffset + pool_poolOffset(buf); } +static uint32_t +pool_placement(struct _WsbmBufStorage *buf) +{ + return pool_kernel(buf)->placement; +} + static void pool_fence(struct _WsbmBufStorage *buf, struct _WsbmFenceObject *fence) { @@ -1181,6 +1187,7 @@ wsbmSlabPoolInit(int fd, pool->destroy = &pool_destroy; pool->offset = &pool_offset; pool->poolOffset = &pool_poolOffset; + pool->placement = &pool_placement; pool->size = &pool_size; pool->create = &pool_create; pool->fence = &pool_fence; |