ioctl.h 848 B

1234567891011121314151617181920212223242526
  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 fileattr;
  9. struct btrfs_fs_info;
  10. struct btrfs_ioctl_balance_args;
  11. long btrfs_ioctl(struct file *file, unsigned int cmd, unsigned long arg);
  12. long btrfs_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg);
  13. int btrfs_fileattr_get(struct dentry *dentry, struct fileattr *fa);
  14. int btrfs_fileattr_set(struct mnt_idmap *idmap,
  15. struct dentry *dentry, struct fileattr *fa);
  16. int btrfs_ioctl_get_supported_features(void __user *arg);
  17. void btrfs_sync_inode_flags_to_i_flags(struct inode *inode);
  18. int __pure btrfs_is_empty_uuid(const u8 *uuid);
  19. void btrfs_update_ioctl_balance_args(struct btrfs_fs_info *fs_info,
  20. struct btrfs_ioctl_balance_args *bargs);
  21. #endif