xfs_ioctl.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright (c) 2008 Silicon Graphics, Inc.
  4. * All Rights Reserved.
  5. */
  6. #ifndef __XFS_IOCTL_H__
  7. #define __XFS_IOCTL_H__
  8. extern int
  9. xfs_ioc_space(
  10. struct file *filp,
  11. unsigned int cmd,
  12. xfs_flock64_t *bf);
  13. int
  14. xfs_ioc_swapext(
  15. xfs_swapext_t *sxp);
  16. extern int
  17. xfs_find_handle(
  18. unsigned int cmd,
  19. xfs_fsop_handlereq_t *hreq);
  20. extern int
  21. xfs_open_by_handle(
  22. struct file *parfilp,
  23. xfs_fsop_handlereq_t *hreq);
  24. extern int
  25. xfs_readlink_by_handle(
  26. struct file *parfilp,
  27. xfs_fsop_handlereq_t *hreq);
  28. extern int
  29. xfs_attrmulti_attr_get(
  30. struct inode *inode,
  31. unsigned char *name,
  32. unsigned char __user *ubuf,
  33. uint32_t *len,
  34. uint32_t flags);
  35. extern int
  36. xfs_attrmulti_attr_set(
  37. struct inode *inode,
  38. unsigned char *name,
  39. const unsigned char __user *ubuf,
  40. uint32_t len,
  41. uint32_t flags);
  42. extern int
  43. xfs_attrmulti_attr_remove(
  44. struct inode *inode,
  45. unsigned char *name,
  46. uint32_t flags);
  47. extern struct dentry *
  48. xfs_handle_to_dentry(
  49. struct file *parfilp,
  50. void __user *uhandle,
  51. u32 hlen);
  52. extern long
  53. xfs_file_ioctl(
  54. struct file *filp,
  55. unsigned int cmd,
  56. unsigned long p);
  57. extern long
  58. xfs_file_compat_ioctl(
  59. struct file *file,
  60. unsigned int cmd,
  61. unsigned long arg);
  62. extern int
  63. xfs_set_dmattrs(
  64. struct xfs_inode *ip,
  65. uint evmask,
  66. uint16_t state);
  67. #endif