Skip to contentSkip to conversation

2.6 api host private area?

DISCUSSION Jeff Garzik 1 participant 2 messages Jul 17, 2003 SCSI

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 1 line · Jeff Garzik

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.