Hi Vincent,

Looking at the 2.6.10 and 2.6.16 kernel source, I see that pkt_major gets initialized in the pkt_init() function by the following sequence:

        ret = register_blkdev(pkt_major, "pktcdvd");
        if (ret < 0) {
                printk("pktcdvd: Unable to register block device\n");
                goto out2;
        }
        if (!pkt_major)
                pkt_major = ret;

So, pkt_major should have the correct value on exit. If it does not, you should see some error in dmesg or kernel logs from register_blkdev. Do you see anything like that?

Best regards,

Jurij Smakov                                        [EMAIL PROTECTED]
Key: http://www.wooyd.org/pgpkey/                   KeyID: C99E03CC


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to