
Go to the source code of this file.
Functions | |
| struct block_device * | dummy_blkdev_init (uint16_t block_size, uint32_t nr_blocks, bool writeable) |
| Initialize a dummy block device. | |
Definition in file dummy.h.
| struct block_device* dummy_blkdev_init | ( | uint16_t | block_size, | |
| uint32_t | nr_blocks, | |||
| bool | writeable | |||
| ) | [read] |
Initialize a dummy block device.
| block_size | The size of each block in this device | |
| nr_blocks | The number of blocks available | |
| writeable | true if the device should be writeable, false if it should be read-only |
Definition at line 138 of file dummy.c.
References block_device::alloc_req, BDEV_PRESENT, BDEV_WRITEABLE, block_device::block_size, block_device::flags, block_device::free_req, block_device::get_dev_id, memset(), block_device::nr_blocks, block_device::prepare_req, and set_bit().

1.5.8