> I still don't understand: please demonstrate a use in existing source.
> Rusty.
I do agree it only does something which we do manually with a lot of the
other members, however i'm not quite sure wether the compatibility thing
still holds since a number of drivers have a lot of 2.5 specific stuff
(e.g. pci-dma api changes). Regardless, here is a typical use in a
netdriver.
/* dev and dev->priv zeroed in alloc_etherdev */
dev = alloc_etherdev (sizeof (*tp));
if (dev == NULL) {
printk (KERN_ERR PFX "%s: Unable to alloc new net device\n", pdev->slot_name);
return -ENOMEM;
}
SET_MODULE_OWNER(dev);
tp = dev->priv;
/* followed by ... */
dev->foo = __foo;
dev->bar = __bar;
Zwane
-- function.linuxpower.ca - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/