hc
2024-08-16 62c46c9150c4afde7e5b25436263fddf79d66f0b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* SPDX-License-Identifier: GPL-2.0 OR Apache-2.0 */
/*
 * include/linux/ashmem.h
 *
 * Copyright 2008 Google Inc.
 * Author: Robert Love
 */
 
#ifndef _LINUX_ASHMEM_H
#define _LINUX_ASHMEM_H
 
#include <linux/limits.h>
#include <linux/ioctl.h>
#include <linux/compat.h>
 
#include "uapi/ashmem.h"
 
/* support of 32bit userspace on 64bit platforms */
#ifdef CONFIG_COMPAT
#define COMPAT_ASHMEM_SET_SIZE        _IOW(__ASHMEMIOC, 3, compat_size_t)
#define COMPAT_ASHMEM_SET_PROT_MASK    _IOW(__ASHMEMIOC, 5, unsigned int)
#endif
 
int is_ashmem_file(struct file *file);
 
#endif    /* _LINUX_ASHMEM_H */