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