block_device_operations Struct Reference

Block device operations. More...

#include <blockdev.h>


Data Fields

int(* read )(struct block_device *blockdev, uint64_t block, unsigned long count, userptr_t buffer)
 Read block.
int(* write )(struct block_device *blockdev, uint64_t block, unsigned long count, userptr_t buffer)
 Write block.


Detailed Description

Block device operations.

Definition at line 18 of file blockdev.h.


Field Documentation

int( * block_device_operations::read)(struct block_device *blockdev, uint64_t block, unsigned long count, userptr_t buffer)

Read block.

Parameters:
blockdev Block device
block Block number
count Block count
buffer Data buffer
Return values:
rc Return status code

Referenced by guess_int13_geometry(), int13_extended_read(), and int13_read_sectors().

int( * block_device_operations::write)(struct block_device *blockdev, uint64_t block, unsigned long count, userptr_t buffer)

Write block.

Parameters:
blockdev Block device
block Block number
count Block count
buffer Data buffer
Return values:
rc Return status code

Referenced by int13_extended_write(), and int13_write_sectors().


The documentation for this struct was generated from the following file:

Generated on Tue Apr 6 20:02:02 2010 for gPXE by  doxygen 1.5.7.1