mpt3sas_conf...d_volume_pg1(9)
π mpt3sas_config_get_raid_volume_pg1 π
okay bestie, welcome to the Kernel API Manual β yes that's the manual name, and yes it's giving serious documentation energy. today's main character is mpt3sas_conf...d_volume_pg1(9), a little function that goes and gets you raid volume page 1. sounds niche? it is. but it's also lowkey essential if you're poking at mpt3sas adapters. iykyk π¦
β¨ NAME β¨
mpt3sas_config_get_raid_volume_pg1 β obtain raid volume page 1 π
πΈ SYNOPSIS πΈ
int mpt3sas_config_get_raid_volume_pg1 (struct MPT3SAS_ADAPTER *ioc ,
Mpi2ConfigReply_t *mpi_reply , Mpi2RaidVolPage1_t *config_page , u32
form , u32 handle );
literal chef's kiss signature, no notes π
π«Ά ARGUMENTS π«Ά
iocβ the per adapter object. it's your adapter's whole personality, basically. main character energy.mpi_replyβ the reply mf payload that gets returned from firmware. the firmware's little text-back, fr fr π¨config_pageβ contents of the config page. this is where the good stuff lands.formβ eitherGET_NEXT_HANDLEorHANDLE. pick your vibe.handleβ the volume handle. like a username but for a volume π
π΄ CONTEXT π΄
sleep.
that's it. that's the whole context. yes, literally. this function is allowed to sleep β so don't call it from somewhere spicy where sleeping is a crime. ngl that's the entire warning and it's iconic for it π
β RETURN β
0 for success, non-zero for failure. that's the whole deal β zero means slay, anything else means something went sideways π
quick vibe check: non-zero isn't a number to interpret, it's just "nope, failed." don't overthink it bestie.
π SEE ALSO π
these are the linked entries, and yes i'm listing every single one because we do not skip. periodt. π
- Kernel file
./drivers/scsi/mpt3sas/mpt3sas_config.c struct config_request(9)_config_display_some_debug(9)_config_alloc_config_dma_memory(9)_config_free_config_dma_memory(9)mpt3sas_config_done(9)_config_request(9)mpt3sas_config_get_manufacturing_pg0(9)mpt3sas_config_get_manufacturing_pg1(9)mpt3sas_config_get_manufacturing_pg10(9)mpt3sas_config_get_manufacturing_pg11(9)mpt3sas_config_set_manufacturing_pg11(9)mpt3sas_config_get_bios_pg2(9)mpt3sas_config_get_bios_pg3(9)mpt3sas_config_set_bios_pg4(9)mpt3sas_config_get_bios_pg4(9)mpt3sas_config_get_iounit_pg0(9)mpt3sas_config_get_iounit_pg1(9)mpt3sas_config_set_iounit_pg1(9)mpt3sas_config_get_iounit_pg3(9)mpt3sas_config_get_iounit_pg7(9)mpt3sas_config_get_iounit_pg8(9)mpt3sas_config_get_ioc_pg8(9)mpt3sas_config_get_ioc_pg1(9)mpt3sas_config_set_ioc_pg1(9)mpt3sas_config_get_sas_device_pg0(9)mpt3sas_config_get_pcie_device_pg0(9)mpt3sas_config_get_pcie_iounit_pg1(9)mpt3sas_config_get_pcie_device_pg2(9)mpt3sas_config_get_number_hba_phys(9)mpt3sas_config_get_sas_iounit_pg0(9)mpt3sas_config_get_sas_iounit_pg1(9)mpt3sas_config_set_sas_iounit_pg1(9)mpt3sas_config_get_expander_pg0(9)mpt3sas_config_get_expander_pg1(9)mpt3sas_config_get_enclosure_pg0(9)mpt3sas_config_get_phy_pg0(9)mpt3sas_config_get_phy_pg1(9)mpt3sas_config_get_number_pds(9)mpt3sas_config_get_raid_volume_pg0(9)mpt3sas_config_get_phys_disk_pg0(9)mpt3sas_config_get_driver_trigger_pg0(9)_config_set_driver_trigger_pg0(9)mpt3sas_config_update_driver_trigger_pg0(9)mpt3sas_config_get_driver_trigger_pg1(9)_config_set_driver_trigger_pg1(9)mpt3sas_config_update_driver_trigger_pg1(9)mpt3sas_config_get_driver_trigger_pg2(9)_config_set_driver_trigger_pg2(9)mpt3sas_config_update_driver_trigger_pg2(9)mpt3sas_config_get_driver_trigger_pg3(9)_config_set_driver_trigger_pg3(9)mpt3sas_config_update_driver_trigger_pg3(9)mpt3sas_config_get_driver_trigger_pg4(9)_config_set_driver_trigger_pg4(9)mpt3sas_config_update_driver_trigger_pg4(9)mpt3sas_config_get_volume_handle(9)mpt3sas_config_get_volume_wwid(9)
like i said. every. single. one. π
and that's the whole page bestie π it lives in ./drivers/scsi/mpt3sas and the version stamp says October 2026, so consider this your cute little sign-off: go get that page 1, stay sleepy-context, and remember β 0 is success and everything else is a no. bye π
πβ¨
π¦ 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