* 2.6 api host private area?
@ 2003-07-17 18:44 Jeff Garzik
2003-07-17 18:45 ` Jeff Garzik
0 siblings, 1 reply; 2+ messages in thread
From: Jeff Garzik @ 2003-07-17 18:44 UTC (permalink / raw)
To: SCSI Mailing List
Where is the pointer for the scsi_host_alloc private area stored?
In the net driver subsystem, alloc_etherdev() stores this in the
dev->priv pointer.
I see clearly that scsi_host_alloc allocates the correct size (scsi_host
+ privsize), but it forces each LLD to duplicate nasty pointer
arithmetic required to obtain the pointer to the private area.
Jeff
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: 2.6 api host private area?
2003-07-17 18:44 2.6 api host private area? Jeff Garzik
@ 2003-07-17 18:45 ` Jeff Garzik
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2003-07-17 18:45 UTC (permalink / raw)
To: SCSI Mailing List
Jeff Garzik wrote:
> Where is the pointer for the scsi_host_alloc private area stored?
Nevermind, I see ->hostdata at the end of the struct.
Alignment issues remain, though.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-07-17 18:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-17 18:44 2.6 api host private area? Jeff Garzik
2003-07-17 18:45 ` Jeff Garzik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox