xfs_ioctl.h 1.5 KB

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