block: add private data field
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
5692aa8120
commit
0d87d7bffe
1 changed files with 3 additions and 0 deletions
|
|
@ -28,6 +28,7 @@ struct block_device {
|
|||
size_t lba_start;
|
||||
|
||||
struct block_device *part_of; /* if it is a partition */
|
||||
void *priv;
|
||||
|
||||
struct block_ops ops;
|
||||
struct disk disk;
|
||||
|
|
@ -36,4 +37,6 @@ struct block_device {
|
|||
ssize_t block_read(struct block_device *dev, char *buf, size_t offset, size_t n_blocks);
|
||||
ssize_t block_write(struct block_device *dev, char *buf, size_t offset, size_t n_blocks);
|
||||
|
||||
int block_check_partitions(struct block_device *bdev);
|
||||
|
||||
#endif /* _BLOCK_H_ */
|
||||
|
|
|
|||
Loading…
Reference in a new issue