hypfs.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. #include <linux/debugfs.h>
  13. #define REG_FILE_MODE 0440
  14. #define UPDATE_FILE_MODE 0220
  15. #define DIR_MODE 0550
  16. extern struct dentry *hypfs_mkdir(struct super_block *sb, struct dentry *parent,
  17. const char *name);
  18. extern struct dentry *hypfs_create_u64(struct super_block *sb,
  19. struct dentry *dir, const char *name,
  20. __u64 value);
  21. extern struct dentry *hypfs_create_str(struct super_block *sb,
  22. struct dentry *dir, const char *name,
  23. char *string);
  24. /* LPAR Hypervisor */
  25. extern int hypfs_diag_init(void);
  26. extern void hypfs_diag_exit(void);
  27. extern int hypfs_diag_create_files(struct super_block *sb, struct dentry *root);
  28. /* VM Hypervisor */
  29. extern int hypfs_vm_init(void);
  30. extern void hypfs_vm_exit(void);
  31. extern int hypfs_vm_create_files(struct super_block *sb, struct dentry *root);
  32. /* Directory for debugfs files */
  33. extern struct dentry *hypfs_dbfs_dir;
  34. #endif /* _HYPFS_H_ */