xfs_ioctl.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. /*
  2. * Copyright (c) 2008 Silicon Graphics, Inc.
  3. * All Rights Reserved.
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU General Public License as
  7. * published by the Free Software Foundation.
  8. *
  9. * This program is distributed in the hope that it would be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program; if not, write the Free Software Foundation,
  16. * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  17. */
  18. #ifndef __XFS_IOCTL_H__
  19. #define __XFS_IOCTL_H__
  20. extern int
  21. xfs_ioc_space(
  22. struct file *filp,
  23. unsigned int cmd,
  24. xfs_flock64_t *bf);
  25. int
  26. xfs_ioc_swapext(
  27. xfs_swapext_t *sxp);
  28. extern int
  29. xfs_find_handle(
  30. unsigned int cmd,
  31. xfs_fsop_handlereq_t *hreq);
  32. extern int
  33. xfs_open_by_handle(
  34. struct file *parfilp,
  35. xfs_fsop_handlereq_t *hreq);
  36. extern int
  37. xfs_readlink_by_handle(
  38. struct file *parfilp,
  39. xfs_fsop_handlereq_t *hreq);
  40. extern int
  41. xfs_attrmulti_attr_get(
  42. struct inode *inode,
  43. unsigned char *name,
  44. unsigned char __user *ubuf,
  45. __uint32_t *len,
  46. __uint32_t flags);
  47. extern int
  48. xfs_attrmulti_attr_set(
  49. struct inode *inode,
  50. unsigned char *name,
  51. const unsigned char __user *ubuf,
  52. __uint32_t len,
  53. __uint32_t flags);
  54. extern int
  55. xfs_attrmulti_attr_remove(
  56. struct inode *inode,
  57. unsigned char *name,
  58. __uint32_t flags);
  59. extern struct dentry *
  60. xfs_handle_to_dentry(
  61. struct file *parfilp,
  62. void __user *uhandle,
  63. u32 hlen);
  64. extern long
  65. xfs_file_ioctl(
  66. struct file *filp,
  67. unsigned int cmd,
  68. unsigned long p);
  69. extern long
  70. xfs_file_compat_ioctl(
  71. struct file *file,
  72. unsigned int cmd,
  73. unsigned long arg);
  74. extern int
  75. xfs_set_dmattrs(
  76. struct xfs_inode *ip,
  77. u_int evmask,
  78. u_int16_t state);
  79. #endif