memfd.h 365 B

12345678910111213141516
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __LINUX_MEMFD_H
  3. #define __LINUX_MEMFD_H
  4. #include <linux/file.h>
  5. #ifdef CONFIG_MEMFD_CREATE
  6. extern long memfd_fcntl(struct file *file, unsigned int cmd, unsigned long arg);
  7. #else
  8. static inline long memfd_fcntl(struct file *f, unsigned int c, unsigned long a)
  9. {
  10. return -EINVAL;
  11. }
  12. #endif
  13. #endif /* __LINUX_MEMFD_H */