difference between scsi_target and scsi_targ_bh

Chuck Tuffli chuck_tuffli at agilent.com
Wed Sep 17 10:30:48 PDT 2003


I'm in the process of trying to understand how the targ(4) emulator
works from top to bottom and ran into some confusion over
scsi_target.c vs. scsi_targ_bh.c. From Nate's README, it appears that
you need both of these drivers for the target to work. What confuses
me is that there seems to be some hefty overlap between the two. For
example, the LUN enable/disable code is almost identical, the
constructors are similar, and the "start" functions are similar.

My questions are
1) are both scsi_target and scsi_targ_bh needed
2) if so what is the general difference

Thanks!

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


More information about the freebsd-scsi mailing list