17 lines
363 B
C
Raw Normal View History

2026-01-21 18:59:54 +08:00
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __LINUX_MEMFD_H
#define __LINUX_MEMFD_H
#include <linux/file.h>
#ifdef CONFIG_MEMFD_CREATE
2026-01-29 22:25:33 +08:00
extern long memfd_fcntl(struct file *file, unsigned int cmd, unsigned int arg);
2026-01-21 18:59:54 +08:00
#else
2026-01-29 22:25:33 +08:00
static inline long memfd_fcntl(struct file *f, unsigned int c, unsigned int a)
2026-01-21 18:59:54 +08:00
{
return -EINVAL;
}
#endif
#endif /* __LINUX_MEMFD_H */