xfs_ioctl.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. xfs_mount_t *mp,
  35. xfs_fsop_handlereq_t *hreq,
  36. struct file *parfilp,
  37. struct inode *parinode);
  38. extern int
  39. xfs_readlink_by_handle(
  40. xfs_mount_t *mp,
  41. xfs_fsop_handlereq_t *hreq,
  42. struct inode *parinode);
  43. extern int
  44. xfs_attrmulti_attr_get(
  45. struct inode *inode,
  46. char *name,
  47. char __user *ubuf,
  48. __uint32_t *len,
  49. __uint32_t flags);
  50. extern int
  51. xfs_attrmulti_attr_set(
  52. struct inode *inode,
  53. char *name,
  54. const char __user *ubuf,
  55. __uint32_t len,
  56. __uint32_t flags);
  57. extern int
  58. xfs_attrmulti_attr_remove(
  59. struct inode *inode,
  60. char *name,
  61. __uint32_t flags);
  62. extern long
  63. xfs_file_ioctl(
  64. struct file *filp,
  65. unsigned int cmd,
  66. unsigned long p);
  67. extern long
  68. xfs_file_compat_ioctl(
  69. struct file *file,
  70. unsigned int cmd,
  71. unsigned long arg);
  72. #endif