From mboxrd@z Thu Jan 1 00:00:00 1970 From: malte.vesper@postgrad.manchester.ac.uk (Malte Vesper) Date: Tue, 17 Mar 2015 20:43:38 +0000 Subject: use of dev->dev_t Message-ID: <550891FA.1020007@postgrad.manchester.ac.uk> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org 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