freebsd-nq/share/examples
Kenneth D. Merry b79dc8a8da Fix an issue that caused the kernel to panic inside CTL when trying
to attach to target capable HBAs that implement the old immediate
notify (XPT_IMMED_NOTIFY) and notify acknowledge (XPT_NOTIFY_ACK)
CCBs.  The new API has been in place since SVN change 196008 in
2009.

The solution is two-fold:  fix CTL to handle the responses from the
HBAs, and convert the HBA drivers in question to use the new API.

These drivers have not been tested with CTL, so how well they will
interoperate with CTL is unknown.

scsi_target.c:	Update the userland target example code to use the
		new immediate notify API.

scsi_ctl.c:	Detect when an immediate notify CCB is returned
		with CAM_REQ_INVALID or CAM_PROVIDE_FAIL status,
		and just free it.

		Fix a duplicate assignment.

aic79xx.c,
aic79xx_osm.c:	Update the aic79xx driver to use the new API.
		Target mode is not enabled on for this driver, so
		the changes will have no practical effect.

aic7xxx.c,
aic7xxx_osm.c:	Update the aic7xxx driver to use the new API.

sbp_targ.c:	Update the firewire target code to work with the
		new API.

mpt_cam.c:	Update the mpt(4) driver to work with the new API.
		Target mode is only enabled for Fibre Channel
		mpt(4) devices.

MFC after:	3 days
2012-06-26 14:51:35 +00:00
..
autofs/driver Always assign WARNS using ?= 2010-03-02 16:58:04 +00:00
bootforth
BSD_daemon
csh Include a warning when using the example code as it may not 2012-06-13 06:46:00 +00:00
cvsup Direct users to csup instead of cvsup in the csup-file boilerplate text. 2012-03-24 18:25:16 +00:00
diskless X11BASE has been deprecated for a long time and will die soon 2012-01-09 00:48:19 +00:00
drivers Update to use DEVMETHOD_END. 2011-11-22 21:49:29 +00:00
etc Finally nuke auth.conf, nine years after it was deprecated. The only 2012-06-12 17:02:53 +00:00
find_interface
FreeBSD_version Add unistd.h to the getosreldate(3) manpage. 2008-09-30 11:25:55 +00:00
hast Please welcome HAST - Highly Avalable Storage. 2010-02-18 23:16:19 +00:00
hwpmc
ibcs2
indent indent.pro example: put all options one per line 2010-04-05 09:26:03 +00:00
ipfilter
ipfw
IPv6
jails Add two scripts that demonstrate how to make and 2010-10-24 22:59:38 +00:00
kld Uuencode the sample "binary" firmware image file (instead of explicitly 2011-04-01 23:47:10 +00:00
libvgl Remove typos, tabs-after-spaces and EOL whitespace. Convert to UTF-8. 2011-05-22 14:03:21 +00:00
mdoc Sync example file with mdoc changes made in rev 235450. 2012-06-13 19:08:00 +00:00
netgraph Fix more typos to be a good example. 2011-05-22 14:23:48 +00:00
nwclient
perfmon Fix missing argument for errx(). 2010-06-23 04:42:47 +00:00
pf Update the icmp example to show allowing only the safe types. 2011-02-19 14:57:00 +00:00
portal
ppi
ppp X11BASE has been deprecated for a long time and will die soon 2012-01-09 00:48:19 +00:00
printing X11BASE has been deprecated for a long time and will die soon 2012-01-09 00:48:19 +00:00
scsi_target Fix an issue that caused the kernel to panic inside CTL when trying 2012-06-26 14:51:35 +00:00
ses MFprojects/zfsd: 2012-05-24 14:07:44 +00:00
smbfs
sunrpc
witness
Makefile - Make the default values for tcsh more user friendly 2012-03-24 18:43:18 +00:00