|
Classes |
| struct | blk_major_name |
must be unique within the system. |
| The return value depends on the input parameter.
- if a major device number was requested in range [1..255] then the function returns zero on success, or a negative error code
- if any unused major number was requested with =0 parameter then the return value is the allocated major number in range [1..255] or a negative error code otherwise
|
| static struct device_type | disk_type |
| static struct kobj_map * | bdev_map |
| static struct attribute * | disk_attrs [] |
| static struct attribute_group | disk_attr_group |
| static struct attribute_group * | disk_attr_groups [] |
| struct class | block_class |
| int | register_blkdev (unsigned int major, const char *name) |
| | EXPORT_SYMBOL (register_blkdev) |
| void | unregister_blkdev (unsigned int major, const char *name) |
| | EXPORT_SYMBOL (unregister_blkdev) |
| static int | blk_mangle_minor (int minor) |
| | blk_mangle_minor - scatter minor numbers apart : minor number to mangle
|
| int | blk_alloc_devt (struct hd_struct *part, dev_t *devt) |
| | blk_alloc_devt - allocate a dev_t for a partition : partition to allocate dev_t for : out parameter for resulting dev_t
|
| void | blk_free_devt (dev_t devt) |
| | blk_free_devt - free a dev_t : dev_t to free
|
| static char * | bdevt_str (dev_t devt, char *buf) |
| void | blk_register_region (dev_t devt, unsigned long range, struct module *module, struct kobject *(*probe)(dev_t, int *, void *), int(*lock)(dev_t, void *), void *data) |
| | EXPORT_SYMBOL (blk_register_region) |
| void | blk_unregister_region (dev_t devt, unsigned long range) |
| | EXPORT_SYMBOL (blk_unregister_region) |
| static struct kobject * | exact_match (dev_t devt, int *partno, void *data) |
| static int | exact_lock (dev_t devt, void *data) |
| void | add_disk (struct gendisk *disk) |
| | add_disk - add partitioning information to kernel list : per-device partitioning information
|
| | EXPORT_SYMBOL (add_disk) |
| | EXPORT_SYMBOL (del_gendisk) |
| void | unlink_gendisk (struct gendisk *disk) |
| struct gendisk * | get_gendisk (dev_t devt, int *partno) |
| | get_gendisk - get partitioning information for a given device : device to get partitioning information for : returned partition index
|
| struct block_device * | bdget_disk (struct gendisk *disk, int partno) |
| | bdget_disk - do bdget() by gendisk and partition number : gendisk of interest : partition number
|
| | EXPORT_SYMBOL (bdget_disk) |
| void __init | printk_all_partitions (void) |
| static struct kobject * | base_probe (dev_t devt, int *partno, void *data) |
| static int __init | genhd_device_init (void) |
| | subsys_initcall (genhd_device_init) |
| static ssize_t | disk_range_show (struct device *dev, struct device_attribute *attr, char *buf) |
| static ssize_t | disk_ext_range_show (struct device *dev, struct device_attribute *attr, char *buf) |
| static ssize_t | disk_removable_show (struct device *dev, struct device_attribute *attr, char *buf) |
| static ssize_t | disk_ro_show (struct device *dev, struct device_attribute *attr, char *buf) |
| static ssize_t | disk_capability_show (struct device *dev, struct device_attribute *attr, char *buf) |
| static | DEVICE_ATTR (range, S_IRUGO, disk_range_show, NULL) |
| static | DEVICE_ATTR (ext_range, S_IRUGO, disk_ext_range_show, NULL) |
| static | DEVICE_ATTR (removable, S_IRUGO, disk_removable_show, NULL) |
| static | DEVICE_ATTR (ro, S_IRUGO, disk_ro_show, NULL) |
| static | DEVICE_ATTR (size, S_IRUGO, part_size_show, NULL) |
| static | DEVICE_ATTR (capability, S_IRUGO, disk_capability_show, NULL) |
| static | DEVICE_ATTR (stat, S_IRUGO, part_stat_show, NULL) |
| static void | disk_free_ptbl_rcu_cb (struct rcu_head *head) |
| static void | disk_replace_part_tbl (struct gendisk *disk, struct disk_part_tbl *new_ptbl) |
| | disk_replace_part_tbl - replace disk->part_tbl in RCU-safe way : disk to replace part_tbl for : new part_tbl to install
|
| int | disk_expand_part_tbl (struct gendisk *disk, int partno) |
| | disk_expand_part_tbl - expand disk->part_tbl : disk to expand part_tbl for : expand such that this partno can fit in
|
| static void | disk_release (struct device *dev) |
| static void | media_change_notify_thread (struct work_struct *work) |
| dev_t | blk_lookup_devt (const char *name, int partno) |
| | EXPORT_SYMBOL (blk_lookup_devt) |
| struct gendisk * | alloc_disk (int minors) |
| | EXPORT_SYMBOL (alloc_disk) |
| struct gendisk * | alloc_disk_node (int minors, int node_id) |
| | EXPORT_SYMBOL (alloc_disk_node) |
| struct kobject * | get_disk (struct gendisk *disk) |
| | EXPORT_SYMBOL (get_disk) |
| void | put_disk (struct gendisk *disk) |
| | EXPORT_SYMBOL (put_disk) |
| void | set_device_ro (struct block_device *bdev, int flag) |
| | EXPORT_SYMBOL (set_device_ro) |
| void | set_disk_ro (struct gendisk *disk, int flag) |
| | EXPORT_SYMBOL (set_disk_ro) |
| int | bdev_read_only (struct block_device *bdev) |
| | EXPORT_SYMBOL (bdev_read_only) |
| int | invalidate_partition (struct gendisk *disk, int partno) |
| | EXPORT_SYMBOL (invalidate_partition) |
Defines |
| #define | MAX_EXT_DEVT (1 << MINORBITS) |
Functions |
| static | DEFINE_MUTEX (block_class_lock) |
| static | DEFINE_MUTEX (ext_devt_mutex) |
| static | DEFINE_IDR (ext_devt_idr) |
| struct hd_struct * | disk_get_part (struct gendisk *disk, int partno) |
| | disk_get_part - get partition : disk to look partition from : partition number
|
| | EXPORT_SYMBOL_GPL (disk_get_part) |
| void | disk_part_iter_init (struct disk_part_iter *piter, struct gendisk *disk, unsigned int flags) |
| | disk_part_iter_init - initialize partition iterator : iterator to initialize : disk to iterate over : DISK_PITER_* flags
|
| | EXPORT_SYMBOL_GPL (disk_part_iter_init) |
| struct hd_struct * | disk_part_iter_next (struct disk_part_iter *piter) |
| | disk_part_iter_next - proceed iterator to the next partition and return it : iterator of interest
|
| | EXPORT_SYMBOL_GPL (disk_part_iter_next) |
| void | disk_part_iter_exit (struct disk_part_iter *piter) |
| | disk_part_iter_exit - finish up partition iteration : iter of interest
|
| | EXPORT_SYMBOL_GPL (disk_part_iter_exit) |
| static int | sector_in_part (struct hd_struct *part, sector_t sector) |
| struct hd_struct * | disk_map_sector_rcu (struct gendisk *disk, sector_t sector) |
| | disk_map_sector_rcu - map sector to partition : gendisk of interest : sector to map
|
| | EXPORT_SYMBOL_GPL (disk_map_sector_rcu) |
| static int | major_to_index (int major) |
Variables |
| struct kobject * | block_depr |
| static struct blk_major_name * | major_names [BLKDEV_MAJOR_HASH_SIZE] |