use of dev->dev_t

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

 



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

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux