hypfs.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * arch/s390/hypfs/hypfs.h
  3. * Hypervisor filesystem for Linux on s390.
  4. *
  5. * Copyright (C) IBM Corp. 2006
  6. * Author(s): Michael Holzheu <holzheu@de.ibm.com>
  7. */
  8. #ifndef _HYPFS_H_
  9. #define _HYPFS_H_
  10. #include <linux/fs.h>
  11. #include <linux/types.h>
  12. #define REG_FILE_MODE 0440
  13. #define UPDATE_FILE_MODE 0220
  14. #define DIR_MODE 0550
  15. extern struct dentry *hypfs_mkdir(struct super_block *sb, struct dentry *parent,
  16. const char *name);
  17. extern struct dentry *hypfs_create_u64(struct super_block *sb,
  18. struct dentry *dir, const char *name,
  19. __u64 value);
  20. extern struct dentry *hypfs_create_str(struct super_block *sb,
  21. struct dentry *dir, const char *name,
  22. char *string);
  23. /* LPAR Hypervisor */
  24. extern int hypfs_diag_init(void);
  25. extern void hypfs_diag_exit(void);
  26. extern int hypfs_diag_create_files(struct super_block *sb, struct dentry *root);
  27. /* VM Hypervisor */
  28. extern int hypfs_vm_init(void);
  29. extern int hypfs_vm_create_files(struct super_block *sb, struct dentry *root);
  30. #endif /* _HYPFS_H_ */