android_kernel_samsung_msm8976/include/linux/ashmem.h
Shubhraprakash Das 5268d5bbb1 ashmem: Add routines to get in kernel reference to ashmem file
Add get_ashmem_file and put_ashmem_file routines in ashmem driver to get
and return file references to ashmem file from within the kernel.

Change-Id: Ifbb54f7c1aab90f6d656a10a3c40ca2b65ceb89a
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
2013-07-08 06:09:54 -07:00

21 lines
508 B
C

/*
* include/linux/ashmem.h
*
* Copyright 2008 Google Inc.
* Author: Robert Love
*
* This file is dual licensed. It may be redistributed and/or modified
* under the terms of the Apache 2.0 License OR version 2 of the GNU
* General Public License.
*/
#ifndef _LINUX_ASHMEM_H
#define _LINUX_ASHMEM_H
#include <uapi/linux/ashmem.h>
int get_ashmem_file(int fd, struct file **filp, struct file **vm_file,
unsigned long *len);
void put_ashmem_file(struct file *file);
#endif /* _LINUX_ASHMEM_H */