CFUMASS(4)
π NAME π
okay so bestie, this is the CFUMASS(4) page from the Kernel Interfaces Manual, and the main character is cfumass β USB device side support for Mass Storage Class Transport. periodt. π
β¨ SYNOPSIS β¨
You can compile this driver into the kernel by placing these lines in the kernel configuration file:
device usb
device usb_template
device ctl
device cfumass
The driver module can also be loaded at boot by adding this line to loader.conf(5):
cfumass_load="YES"
πΈ DESCRIPTION πΈ
The cfumass driver provides device side support for emulating an USB mass storage device compliant with the USB Mass Storage Class Bulk-Only (BBB) Transport specification, implemented as a ctl(4) frontend driver. not me being obsessed with acronyms, but BBB is iconic here π«Ά
To use cfumass, the vibe check is:
cfumassmust be loaded as a module or compiled into the kernel.- The USB Mass Storage template must be chosen by setting the
hw.usb.templatesysctl to0. - The USB OTG port must be working in USB device-side mode. This happens automatically upon connection to a USB host.
- There must be a
ctl(4)LUN configured for thecfumassport.
Upon loading, the driver creates a ctl(4) port named cfumass, presenting the first LUN mapped for that port β usually LUN 0 β to the USB host. See ctl.conf(5) and ctld(8) for details on configuring the LUN. See the cfumass_enable and cfumass_dir rc(8) variables in rc.conf(5) for an automated way to configure it at boot. slay. β¨
π¦ SYSCTL VARIABLES π¦
These variables are available as both sysctl(8) variables and loader(8) tunables:
hw.usb.cfumass.debugβ Verbosity level for log messages from thecfumassdriver. Set to0to disable logging or1to warn about potential problems. Larger values enable debugging output. Defaults to1.hw.usb.cfumass.ignore_stopβ IgnoreSTART STOP UNITSCSI commands withSTARTandLOEJbits cleared. Some initiators send that command to stop the target when the user attempts to gracefully eject the drive, but fail to start it when the drive is reconnected. Set to0to handle the command in a standards-compliant way,1to ignore it and log a warning, or2to ignore it silently. Defaults to1.hw.usb.cfumass.max_lunβ Max LUN number to report to the initiator (USB host). Must be between0and15. Some initiators incorrectly handle values larger than0. Defaults to0.
π SEE ALSO π
β HISTORY β
The cfumass driver first appeared in FreeBSD 11.1. iykyk π
π AUTHORS π
The cfumass driver was developed by Edward Tomasz Napierala <trasz@FreeBSD.org> under sponsorship from the FreeBSD Foundation. give him the crown, fr fr. π«Ά
xoxo, this CFUMASS(4) page is from Debian and dated April 21, 2018 π
π¦
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (c) 2017 The FreeBSD Foundation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms