Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Jan 2004 12:18:54 -0800
From:      Chuck Tuffli <chuck_tuffli@agilent.com>
To:        freebsd-scsi@freebsd.org
Subject:   target driver question
Message-ID:  <20040114201854.GB15642@cre85086tuf.rose.agilent.com>

next in thread | raw e-mail | index | archive | help
Hi -

I'm creating a target driver and ran across something that can be
trivially fixed, but which makes me wonder if I don't understand what
is going on.

When this driver receives a CDB, it needs to save away some information
specific to that IO for later use in the CONT_TARGET_IO phase. I
mistakenly thought that the ccb that the driver passed up in ATIO
would be the same ccb that it would get back for CTIO. As such, the
driver saved away a pointer to the IO specific info it needed in
ccb->ccb_h.sim_priv.entries[0].ptr

It would be easy enough in scsi_target(8) to copy  the SIM private
data from the ATIO structure to the CTIO structure. Is this the right
thing to do though? Thanks!

-- 
Chuck Tuffli    <chuck_tuffli AT NO_SPAM agilent DOT com>
Agilent Technologies, Storage Area Networking



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040114201854.GB15642>