|
CardSight 0.1.0
C API reference for the CardSight firmware and application
|
A disk as a driver describes it to the block layer. More...
#include <blkdev.h>
Data Fields | |
| char | disk_name [DISK_NAME_LEN] |
| void * | private_data |
| const struct block_device_operations * | fops |
| uint64_t | capacity |
| uint32_t | logical_block_size |
| uint32_t | flags |
| struct block_device * | part0 |
| struct block_device * | parts |
| uint32_t | part_count |
| struct gendisk * | next |
| bool | registered |
| bool | dead |
A disk as a driver describes it to the block layer.
| uint64_t gendisk::capacity |
Sectors of logical_block_size bytes.
| bool gendisk::dead |
del_gendisk() ran: every access fails with -ENODEV.
| char gendisk::disk_name[DISK_NAME_LEN] |
Set by the driver before add_disk().
| uint32_t gendisk::flags |
GENHD_FL_* flags.
| const struct block_device_operations* gendisk::fops |
Driver operations.
| uint32_t gendisk::logical_block_size |
Bytes per sector; 512.
| struct gendisk* gendisk::next |
The registered disks.
| struct block_device* gendisk::part0 |
The whole disk.
| uint32_t gendisk::part_count |
Number of partitions in parts.
| struct block_device* gendisk::parts |
The partitions, in partition number order.
| void* gendisk::private_data |
Driver-private state.
| bool gendisk::registered |
Whether add_disk() succeeded.