title: how to get 'device struct' from 'dev_t' in linux kernel programming?
body: <p>I am quite new to kernel programming and I am following the tutorial given at : 
  <a href="http://ww2.cs.fsu.edu/~roy/KDD/Final_Paper.pdf" rel="nofollow">USB boot authentication</a></p>
  
  <p>I want to get a 'device struct' of a USB drive. I have 'dev_t' instance of the USB device. Further, I want to check whether the device struct is a USB device or not. I am not able to figure out how to start...</p>
  
  <p>Thanks</p>