SBP_TARG(4)
β¨ SBP_TARG β¨
okay bestie, gather round, because today we're talking about sbp_targ β the Serial Bus Protocol 2 (SBP-2) Target Mode devices driver π
and yes it lives in section 4 of the Kernel Interfaces Manual, iykyk.
πΈ NAME πΈ
sbp_targ β the Serial Bus Protocol 2 (SBP-2) Target Mode devices driver. that's it, that's the whole vibe. π¦
π SYNOPSIS π
so you wanna get this driver into your kernel? bet. drop these lines into your kernel configuration file:
device sbp_targ
device firewire
device scbus
device targ
orrrr, if you'd rather load it as a module at boot time (main character energy, no recompile needed π), put these lines in loader.conf(5):
firewire_load="YES"
cam_load="YES"
sbp_targ_load"YES"
β οΈ bestie, look closely at that last line β it's written exactly like that in the original: sbp_targ_load"YES". no equals sign. we're not fixing it, we're just reporting it. π«Ά
π DESCRIPTION π
okay so the sbp_targ driver gives you support for SBP-2 target mode. it's supposed to work together with cam(4), targ(4), and firewire(4) β like a little squad that only functions as a group chat, fr fr.
and here's the part people forget: you also need to use scsi_target(8), which you can find chillin' in /usr/share/examples/scsi_target, to actually provide real, actual devices. the driver alone is giving nothing without it. π
π EXAMPLES π
here's the whole thing in action, no cap:
# mdconfig -a -t malloc -s 10m
md0
# scsi_target 0:0:0 /dev/md0
(Assuming sbp_targ0 on scbus0)
look at that. iconic. β¨
π¦ SEE ALSO π¦
cam(4)firewire(4)targ(4)camcontrol(8)fwcontrol(8)kldload(8)scsi_target(8)
go read them too, they're all part of the friend group π
π AUTHORS π
the sbp_targ driver was written by Hidetoshi Shimokawa. thank you for your service, legend π«‘π
π BUGS π
π¨ okay this is the serious part, bestie, so listen up. this driver is currently under development. it does not work correctly in multi-initiator environments, and it does not work correctly after the bus topology has been changed. like, at all. so plan accordingly π
that's the whole page, babes β this little gift came from the Debian crew and it's dated November 7, 2003. vintage. antique. still slaying. πβ
π¦ where this page comes from
- debian bookworm: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- debian trixie: freebsd-manpages 12.2-2 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu jammy: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu noble: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu questing: freebsd-manpages 12.2-2
- ubuntu resolute: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu stonking: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- Copyright (c) 2003 Hidetoshi Shimokawa
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms