mega_internal_command(9)
π mega_internal_command(9)
okay so bestie, welcome to the Kernel API Manual β¨ β this is the page for mega_internal_command, and honestly it's giving "small function, big responsibilities" energy. let's get into it π«Ά
πΈ NAME
mega_internal_command β ...and that's literally it, the NAME section on this one is just the name, no little description blurb. iconic minimalism tbh π (we still love her)
β¨ SYNOPSIS
int mega_internal_command (adapter_t *adapter , megacmd_t *mc ,
mega_passthru *pthru );
π ARGUMENTS
adapterβ pointer to our soft state π yeah she needs the adapter, it's her home base, her little home screenmcβ the mailbox command π this is the actual command you're firing offpthruβ Passthru structure for DCDB commands π¦ only the DCDB passthru girlies need to worry about this one
π₯ DESCRIPTION
so the whole vibe of this function is: issue the internal commands in interrupt mode β‘ like, that's the job, that's the whole assignment, and she ate.
and the last argument? that's pthru, and it's the address of the passthru structure β but only if the command you're about to fire is a passthru command. iykyk π
otherwise it's a different story (see the NOTE, bestie, i gotchu)
π NOTE
parameter 'pthru' is null for non-passthru commands. no cap. if it's not a passthru command, pass null and move on π
π SEE ALSO
Kernel file ./drivers/scsi/megaraid.c β and honestly the friend group here is huge, so let's do a little roll call π:
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)megaraid_abort_and_reset(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)
like i said. huge friend group. every single one of them tagged, no one left out π«Ά
and that's the page, bestie!! π this one lives in ./drivers/scsi, dated October 2026, and it's filed under mega_internal_command(9) β go forth and issue those internal commands in interrupt mode, you've got 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