megaraid_abort_and_reset(9)
π megaraid_abort_and_reset(9) π
okay so bestie, welcome to the Kernel API Manual β yes that's the manual name, we're fancy here β¨ β and today's main character is megaraid_abort_and_reset. The NAME section literally gives you nothing after the dash, like the manpage itself is being mysterious on purpose π so no worries, the SYNOPSIS and DESCRIPTION are gonna do all the talking.
β¨ SYNOPSIS β¨
int megaraid_abort_and_reset (adapter_t *adapter , struct scsi_cmnd *cmd
, int aor );
that's the whole signature, no cap. three things go in, an int comes out π«Ά
π ARGUMENTS π
adapterβ the megaraid soft state, aka the adapter's whole vibe and memory situation πcmdβ the scsi command you're trying to abort or reset, the poor little thing πaorβ the abort-or-reset flag, literally the switch that says which one we're doing β¨
πΈ DESCRIPTION πΈ
so here's the plan, bestie: it tries to locate the scsi command in the pending queue π if it finds it, and that command has not been issued to the controller yet, it aborts/resets it, slay π otherwise? it returns failure. that's it, that's the whole function, and honestly? iconic. no notes. periodt π
lowkey important: the abort/reset only goes through when the command is found in the pending queue and hasn't been issued to the controller. if either of those isn't true, it's a failure return β no cap, don't forget that part π«Ά
π¦ SEE ALSO π¦
first up, the home base: Kernel file ./drivers/scsi/megaraid.c β that's where all of this lives π
and now the whole friend group, all of them (9) sections, all of them exactly as written:
mega_setup_mailbox(9)mega_runpendq(9)mega_allocate_scb(9)mega_get_ldrv_num(9)mega_build_cmd(9)mega_prepare_passthru(9)mega_prepare_extpassthru(9)issue_scb(9)issue_scb_block(9)megaraid_isr_iomapped(9)megaraid_isr_memmapped(9)mega_cmd_done(9)mega_allocate_inquiry(9)proc_show_config(9)proc_show_stat(9)proc_show_mbox(9)proc_show_rebuild_rate(9)proc_show_battery(9)proc_show_pdrv(9)proc_show_pdrv_ch0(9)proc_show_pdrv_ch1(9)proc_show_pdrv_ch2(9)proc_show_pdrv_ch3(9)proc_show_rdrv(9)proc_show_rdrv_10(9)proc_show_rdrv_20(9)proc_show_rdrv_30(9)proc_show_rdrv_40(9)mega_create_proc_entry(9)mega_init_scb(9)megadev_open(9)megadev_ioctl(9)mega_m_to_n(9)mega_is_bios_enabled(9)mega_enum_raid_scsi(9)mega_get_boot_drv(9)mega_support_random_del(9)mega_support_ext_cdb(9)mega_del_logdrv(9)mega_get_max_sgl(9)mega_support_cluster(9)mega_adapinq(9)mega_internal_dev_inquiry(9)mega_internal_command(9)
like, that is a long list and every single one of them ate π₯ go read them, iykyk π
and that's the tea, bestie π this little page came out of ./drivers/scsi and it's dated October 2026 β go off, kernel docs, you dropped this ππ
π¦ 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