Query related to block_device and gendisk relation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
Can anybody please tell me where does an object of gendisk gets
assigned to struct block_device->bd_disk?

I looked into fs/partitions/check.c register_disk()
This function has a parameter struct gendisk pointer. This function
gets/allocates a block_device *bdev. But nowhere it assigns the
gendisk to bdev->bd_disk.


Thanks in advance,
-- 
~p~r~a~s~h~a~n~t~
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux