Files
laptops-kernel/include/linux/memfd.h
T

16 lines
363 B
C
Raw Normal View History

2018-06-07 17:06:01 -07:00
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __LINUX_MEMFD_H
#define __LINUX_MEMFD_H
#include <linux/file.h>
#ifdef CONFIG_MEMFD_CREATE
2023-04-14 16:24:58 +01:00
extern long memfd_fcntl(struct file *file, unsigned int cmd, unsigned int arg);
2018-06-07 17:06:01 -07:00
#else
2023-04-14 16:24:58 +01:00
static inline long memfd_fcntl(struct file *f, unsigned int c, unsigned int a)
2018-06-07 17:06:01 -07:00
{
return -EINVAL;
}
#endif
#endif /* __LINUX_MEMFD_H */