~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/fs/btrfs/sysfs.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 
  3 #ifndef BTRFS_SYSFS_H
  4 #define BTRFS_SYSFS_H
  5 
  6 #include <linux/types.h>
  7 #include <linux/compiler_types.h>
  8 #include <linux/kobject.h>
  9 
 10 struct btrfs_fs_info;
 11 struct btrfs_device;
 12 struct btrfs_fs_devices;
 13 struct btrfs_block_group;
 14 struct btrfs_space_info;
 15 struct btrfs_qgroup;
 16 
 17 enum btrfs_feature_set {
 18         FEAT_COMPAT,
 19         FEAT_COMPAT_RO,
 20         FEAT_INCOMPAT,
 21         FEAT_MAX
 22 };
 23 
 24 char *btrfs_printable_features(enum btrfs_feature_set set, u64 flags);
 25 const char *btrfs_feature_set_name(enum btrfs_feature_set set);
 26 int btrfs_sysfs_add_device(struct btrfs_device *device);
 27 void btrfs_sysfs_remove_device(struct btrfs_device *device);
 28 int btrfs_sysfs_add_fsid(struct btrfs_fs_devices *fs_devs);
 29 void btrfs_sysfs_remove_fsid(struct btrfs_fs_devices *fs_devs);
 30 void btrfs_sysfs_update_sprout_fsid(struct btrfs_fs_devices *fs_devices);
 31 void btrfs_sysfs_feature_update(struct btrfs_fs_info *fs_info);
 32 void btrfs_kobject_uevent(struct block_device *bdev, enum kobject_action action);
 33 
 34 int __init btrfs_init_sysfs(void);
 35 void __cold btrfs_exit_sysfs(void);
 36 int btrfs_sysfs_add_mounted(struct btrfs_fs_info *fs_info);
 37 void btrfs_sysfs_remove_mounted(struct btrfs_fs_info *fs_info);
 38 void btrfs_sysfs_add_block_group_type(struct btrfs_block_group *cache);
 39 int btrfs_sysfs_add_space_info_type(struct btrfs_fs_info *fs_info,
 40                                     struct btrfs_space_info *space_info);
 41 void btrfs_sysfs_remove_space_info(struct btrfs_space_info *space_info);
 42 void btrfs_sysfs_update_devid(struct btrfs_device *device);
 43 
 44 int btrfs_sysfs_add_one_qgroup(struct btrfs_fs_info *fs_info,
 45                                 struct btrfs_qgroup *qgroup);
 46 void btrfs_sysfs_del_qgroups(struct btrfs_fs_info *fs_info);
 47 int btrfs_sysfs_add_qgroups(struct btrfs_fs_info *fs_info);
 48 void btrfs_sysfs_del_one_qgroup(struct btrfs_fs_info *fs_info,
 49                                 struct btrfs_qgroup *qgroup);
 50 
 51 #endif
 52 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php