linux-zen-desktop/include/linux/memfd.h

17 lines
363 B
C
Raw Permalink Normal View History

2023-08-30 17:31:07 +02:00
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __LINUX_MEMFD_H
#define __LINUX_MEMFD_H
#include <linux/file.h>
#ifdef CONFIG_MEMFD_CREATE
2023-10-24 12:59:35 +02:00
extern long memfd_fcntl(struct file *file, unsigned int cmd, unsigned int arg);
2023-08-30 17:31:07 +02:00
#else
2023-10-24 12:59:35 +02:00
static inline long memfd_fcntl(struct file *f, unsigned int c, unsigned int a)
2023-08-30 17:31:07 +02:00
{
return -EINVAL;
}
#endif
#endif /* __LINUX_MEMFD_H */