fileobj/shmobj/devobj: add file size to memobj

This commit is contained in:
Balazs Gerofi
2016-12-19 12:55:12 +09:00
parent 3e1b16f3fc
commit 9635a628a9
9 changed files with 15 additions and 5 deletions

View File

@ -747,6 +747,7 @@ struct pager_create_result {
uintptr_t handle;
int maxprot;
uint32_t flags;
size_t size;
};
enum {
@ -895,6 +896,7 @@ found:
resp->handle = (uintptr_t)pager;
resp->maxprot = maxprot;
resp->flags = mf_flags;
resp->size = st.size;
ihk_device_unmap_virtual(dev, resp, sizeof(*resp));
ihk_device_unmap_memory(dev, phys, sizeof(*resp));