xfs_ioctl.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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 xfs_inode *ip,
  23. struct inode *inode,
  24. struct file *filp,
  25. int ioflags,
  26. unsigned int cmd,
  27. xfs_flock64_t *bf);
  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. char *name,
  44. char __user *ubuf,
  45. __uint32_t *len,
  46. __uint32_t flags);
  47. extern int
  48. xfs_attrmulti_attr_set(
  49. struct inode *inode,
  50. char *name,
  51. const char __user *ubuf,
  52. __uint32_t len,
  53. __uint32_t flags);
  54. extern int
  55. xfs_attrmulti_attr_remove(
  56. struct inode *inode,
  57. 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. #endif