summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Ng <dng@quicinc.com>2010-05-04 18:12:30 -0700
committerQuIC Gerrit Code Review <gerrit@quicinc.com>2010-05-04 18:12:30 -0700
commitb6926749fb223f0c3f5283318784b5f4da2c47e2 (patch)
tree13c978117d0b8536c586d37ea0aa88b50e69a292
parent7fa46725abe98cfe7f4b7ba0c284ab043d3194f8 (diff)
parentcd890bafcb1034d8e4d1ddcbffd86b1e2359b35a (diff)
downloadbionic-M7630AABBQVLZA0040.zip
bionic-M7630AABBQVLZA0040.tar.gz
bionic-M7630AABBQVLZA0040.tar.bz2
-rw-r--r--libc/kernel/common/linux/android_pmem.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/libc/kernel/common/linux/android_pmem.h b/libc/kernel/common/linux/android_pmem.h
index bc980c8..a729deb 100644
--- a/libc/kernel/common/linux/android_pmem.h
+++ b/libc/kernel/common/linux/android_pmem.h
@@ -41,6 +41,8 @@
#define PMEM_CLEAN_CACHES _IOW(PMEM_IOCTL_MAGIC, 12, unsigned int)
#define PMEM_INV_CACHES _IOW(PMEM_IOCTL_MAGIC, 13, unsigned int)
+#define PMEM_GET_FREE_SPACE _IOW(PMEM_IOCTL_MAGIC, 14, unsigned int)
+#define PMEM_ALLOCATE_ALIGNED _IOW(PMEM_IOCTL_MAGIC, 15, unsigned int)
struct pmem_region {
unsigned long offset;
unsigned long len;
@@ -52,5 +54,14 @@ struct pmem_addr {
unsigned long length;
};
-#endif
+struct pmem_freespace {
+ unsigned long total;
+ unsigned long largest;
+};
+struct pmem_allocation {
+ unsigned long size;
+ unsigned int align;
+};
+
+#endif