struct gendisk *get_gendisk(dev_t dev, int *part)
{
  struct kobject *kobj = kobj_lookup(bdev_map, dev, part);
  return kboj ? to_disk(kobj) : NULL;
}