EmbLogic's Blog

Gendisk structure

struct gendisk (declared in <linux/genhd.h>) is the kernel’s representation of an indi-
vidual disk device. In fact, the kernel also uses gendisk structures to represent parti-
tions, but driver authors need not be aware of that. There are several fields in struct
gendisk that must be initialized by a block driver.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>