Quantcast
Channel: VMware Communities : All Content - VMware ESXi 5
Viewing all articles
Browse latest Browse all 18761

Difference Between vmklnx_register_blkdev and device_initialize

$
0
0

Hi all,

 

     We are porting sample Linux block disk driver into esxi 5.0 .In linux the device registered and itialized using the register_blkdev(sbull_major, "sbull") having only two arguments . But in esx we are using vmklnx_register_blkdev(major, name, bus, devfn, data) .So for non pci  block device means ,what should we give for the arguments for bus and devfn ..?

 

     If we should use device_initialize() instead of vmklnx_register_blkdev() means , for adding disk we need to usescsi_add_host (struct Scsi_Host *sh, struct device *pDev)  or add_disk() function is enough?

what is the value of arguments sh,pDev..?

 

Simply what is the flow of registering and intializing the queue using device_initialize()...?

 

Regards,

Vicky


Viewing all articles
Browse latest Browse all 18761

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>