anon_inodes.h 855 B

123456789101112131415161718192021222324252627282930
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * include/linux/anon_inodes.h
  4. *
  5. * Copyright (C) 2007 Davide Libenzi <[email protected]>
  6. *
  7. */
  8. #ifndef _LINUX_ANON_INODES_H
  9. #define _LINUX_ANON_INODES_H
  10. struct file_operations;
  11. struct inode;
  12. struct file *anon_inode_getfile(const char *name,
  13. const struct file_operations *fops,
  14. void *priv, int flags);
  15. struct file *anon_inode_getfile_secure(const char *name,
  16. const struct file_operations *fops,
  17. void *priv, int flags,
  18. const struct inode *context_inode);
  19. int anon_inode_getfd(const char *name, const struct file_operations *fops,
  20. void *priv, int flags);
  21. int anon_inode_getfd_secure(const char *name,
  22. const struct file_operations *fops,
  23. void *priv, int flags,
  24. const struct inode *context_inode);
  25. #endif /* _LINUX_ANON_INODES_H */