bnx2fc_eh_device_reset(9)
π bnx2fc_eh_device_reset β the kernel API manual, but make it make sense π
okay so bestie, this is a page from the Kernel API Manual, and today's main character is bnx2fc_eh_device_reset(9). yes it's a mouthful, no we're not abbreviating it, it's iconic and it knows it β¨
πΈ NAME πΈ
bnx2fc_eh_device_reset β reset a single LUN π
like, just one. one LUN. not the whole party. we're being specific.
π¦ SYNOPSIS π¦
int bnx2fc_eh_device_reset (struct scsi_cmnd *sc_cmd );
that's the whole vibe. it takes one thing and it returns an int. short, sweet, slays.
β¨ ARGUMENTS β¨
sc_cmdβ a SCSI command π«Ά that's it, that's the argument. it's astruct scsi_cmnd *, and it is literally the SCSI command in question.
π₯ DESCRIPTION π₯
so the way this works is: this function is set from the SCSI host template β iykyk β to send a task mgmt command to the target, and then it waits for the response. π
it sends the task management command, it waits for the response, and that's the whole entire arc. no cap. it's giving "polite but firm" energy fr fr β it doesn't just yeet the command and dip, it waits. main character behavior honestly π
π SEE ALSO π
- the Kernel file
./drivers/scsi/bnx2fc/bnx2fc_io.cβ go read it, the lore is in there π bnx2fc_eh_target_reset(9)bnx2fc_eh_abort(9)bnx2fc_queuecommand(9)
all of these are siblings and they all live in the same folder, it's a whole family situation π
π§ just a lil reminder bestie: this one resets a single LUN, so if you were looking for the whole-target energy, that's bnx2fc_eh_target_reset(9) β the name lowkey tells you everything ngl π
okay that's the page!! π this whole thing came out of ./drivers/scsi/bnx2fc and it's dated October 2026, from the Kernel API Manual β so if you ever need to cite it, you've got the receipts π bye bestie, go reset that LUN responsibly π«Άβ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms