From dffc917c67b5973fdcf93348b75488cb256f07cb Mon Sep 17 00:00:00 2001 From: Pritesh Raithatha Date: Mon, 24 Apr 2017 14:36:37 +0530 Subject: tegra: fd: Add wrapper for __alloc_fd Modules like nvgpu and nvmap should to be able to allocate all open fds and for this they need to call __alloc_fd() rather than alloc_fd. However, as __alloc_fd is not exported to modules, a wrapper is being created and exported to the respective modules. bug 200290850 Change-Id: Id245040842f71aadfc484711a23e8ce9dbfa872f Signed-off-by: Pritesh Raithatha Reviewed-on: https://git-master.nvidia.com/r/1701552 GVS: Gerrit_Virtual_Submit Reviewed-by: Sachin Nikam Reviewed-by: mobile promotions Tested-by: mobile promotions --- include/linux/platform/tegra/tegra_fd.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 include/linux/platform/tegra/tegra_fd.h (limited to 'include/linux') diff --git a/include/linux/platform/tegra/tegra_fd.h b/include/linux/platform/tegra/tegra_fd.h new file mode 100644 index 000000000..c30daa03c --- /dev/null +++ b/include/linux/platform/tegra/tegra_fd.h @@ -0,0 +1,23 @@ +/* + * Copyright (C) 2017-2018, NVIDIA Corporation. All rights reserved. + * + * This software is licensed under the terms of the GNU General Public + * License version 2, as published by the Free Software Foundation, and + * may be copied, distributed, and modified under those terms. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + */ + +#include + +#ifndef __TEGRA_FD_H +#define __TEGRA_FD_H + +int tegra_alloc_fd(struct files_struct *files, unsigned int start, + unsigned int flags); + +#endif -- cgit v1.2.2