ioctl.h 982 B

1234567891011121314151617181920212223242526272829
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef BTRFS_IOCTL_H
  3. #define BTRFS_IOCTL_H
  4. #include <linux/types.h>
  5. struct file;
  6. struct dentry;
  7. struct mnt_idmap;
  8. struct file_kattr;
  9. struct io_uring_cmd;
  10. struct btrfs_inode;
  11. struct btrfs_fs_info;
  12. struct btrfs_ioctl_balance_args;
  13. long btrfs_ioctl(struct file *file, unsigned int cmd, unsigned long arg);
  14. long btrfs_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg);
  15. int btrfs_fileattr_get(struct dentry *dentry, struct file_kattr *fa);
  16. int btrfs_fileattr_set(struct mnt_idmap *idmap,
  17. struct dentry *dentry, struct file_kattr *fa);
  18. int btrfs_ioctl_get_supported_features(void __user *arg);
  19. void btrfs_sync_inode_flags_to_i_flags(struct btrfs_inode *inode);
  20. void btrfs_update_ioctl_balance_args(struct btrfs_fs_info *fs_info,
  21. struct btrfs_ioctl_balance_args *bargs);
  22. int btrfs_uring_cmd(struct io_uring_cmd *cmd, unsigned int issue_flags);
  23. void btrfs_uring_read_extent_endio(void *ctx, int err);
  24. #endif