kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* use of dev->dev_t
@ 2015-03-17 20:43 Malte Vesper
  2015-03-17 21:13 ` Greg KH
  0 siblings, 1 reply; 5+ messages in thread
From: Malte Vesper @ 2015-03-17 20:43 UTC (permalink / raw)
  To: kernelnewbies

Hi,
I am trying to write a driver that uses the MINOR(dev_t) to identify 
cards. Since it is a PCI driver and I get pcidev->dev.dev_t anyway. I 
thought about not bothering to store the minor number of the device.
However if I look at pcidev->dev.dev_t in the remove function (the 
driver frameworks remove), I always get pcidev->dev.dev_t == 0.

Is this the intended behaviour and if so why? (This means I have to 
store the minor separatly to call device_destroy())

Thanks
Malte

FYI: I am running a 3.19.0 Kernel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-03-17 22:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-17 20:43 use of dev->dev_t Malte Vesper
2015-03-17 21:13 ` Greg KH
2015-03-17 21:46   ` Malte Vesper
2015-03-17 21:53     ` Greg KH
2015-03-17 22:25       ` Malte Vesper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).