swh:1:snp:173f8deb0c56c557784b4fd217e7608ac6197844
Raw File
Tip revision: c79f46a282390e0f5b306007bf7b11a46d529538 authored by Linus Torvalds on 05 January 2020, 22:23:27 UTC
Linux 5.5-rc5
Tip revision: c79f46a
memfd.h
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __LINUX_MEMFD_H
#define __LINUX_MEMFD_H

#include <linux/file.h>

#ifdef CONFIG_MEMFD_CREATE
extern long memfd_fcntl(struct file *file, unsigned int cmd, unsigned long arg);
#else
static inline long memfd_fcntl(struct file *f, unsigned int c, unsigned long a)
{
	return -EINVAL;
}
#endif

#endif /* __LINUX_MEMFD_H */
back to top