ashmem.h 663 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * include/linux/ashmem.h
  3. *
  4. * Copyright 2008 Google Inc.
  5. * Author: Robert Love
  6. *
  7. * This file is dual licensed. It may be redistributed and/or modified
  8. * under the terms of the Apache 2.0 License OR version 2 of the GNU
  9. * General Public License.
  10. */
  11. #ifndef _LINUX_ASHMEM_H
  12. #define _LINUX_ASHMEM_H
  13. #include <linux/limits.h>
  14. #include <linux/ioctl.h>
  15. #include <linux/compat.h>
  16. #include "uapi/ashmem.h"
  17. /* support of 32bit userspace on 64bit platforms */
  18. #ifdef CONFIG_COMPAT
  19. #define COMPAT_ASHMEM_SET_SIZE _IOW(__ASHMEMIOC, 3, compat_size_t)
  20. #define COMPAT_ASHMEM_SET_PROT_MASK _IOW(__ASHMEMIOC, 5, unsigned int)
  21. #endif
  22. #endif /* _LINUX_ASHMEM_H */