Re: Host drivers and conversion of SCSI to the driver model

Christoph Hellwig
2003-06-28T14:58:11Z

On Sat, Jun 28, 2003 at 11:08:36AM -0400, Jeff Garzik wrote:
> The future netdev api could be summarized as
>
> alloc_<foo>dev -- allocate structure, init
> register_netdev[ice] -- register
> unregister_netdev[ice] -- unregister

Yeah, this maps nicely to

scsi_host_alloc, scsi_add_host, scsi_remove_host

> release_netdev -- unref

This is the final scsi_host_put.

> We actually have this now, once you do s/kfree(dev)/release_netdev(dev)/

But what's more interesting are the driver model core changes to mark
a struct (class_)device dead so it won't ever call back into the driver.

IIRC DaveM's words correctly this was the central part of the netdev
refcounting changes.