xfs_ioctl.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. struct xfs_bstat;
  9. struct xfs_ibulk;
  10. struct xfs_inogrp;
  11. extern int
  12. xfs_ioc_space(
  13. struct file *filp,
  14. xfs_flock64_t *bf);
  15. int
  16. xfs_ioc_swapext(
  17. xfs_swapext_t *sxp);
  18. extern int
  19. xfs_find_handle(
  20. unsigned int cmd,
  21. xfs_fsop_handlereq_t *hreq);
  22. extern int
  23. xfs_open_by_handle(
  24. struct file *parfilp,
  25. xfs_fsop_handlereq_t *hreq);
  26. extern int
  27. xfs_readlink_by_handle(
  28. struct file *parfilp,
  29. xfs_fsop_handlereq_t *hreq);
  30. int xfs_ioc_attrmulti_one(struct file *parfilp, struct inode *inode,
  31. uint32_t opcode, void __user *uname, void __user *value,
  32. uint32_t *len, uint32_t flags);
  33. int xfs_ioc_attr_list(struct xfs_inode *dp, void __user *ubuf, int bufsize,
  34. int flags, struct xfs_attrlist_cursor __user *ucursor);
  35. extern struct dentry *
  36. xfs_handle_to_dentry(
  37. struct file *parfilp,
  38. void __user *uhandle,
  39. u32 hlen);
  40. extern long
  41. xfs_file_ioctl(
  42. struct file *filp,
  43. unsigned int cmd,
  44. unsigned long p);
  45. extern long
  46. xfs_file_compat_ioctl(
  47. struct file *file,
  48. unsigned int cmd,
  49. unsigned long arg);
  50. int xfs_fsbulkstat_one_fmt(struct xfs_ibulk *breq,
  51. const struct xfs_bulkstat *bstat);
  52. int xfs_fsinumbers_fmt(struct xfs_ibulk *breq, const struct xfs_inumbers *igrp);
  53. #endif