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 πŸ¦‹

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