mpt3sas_conf...ber_hba_phys(9)
๐ mpt3sas_config_get_number_hba_phys โ Kernel API Manual, bestie edition โจ
okay so picture this: you're deep in the kernel, specifically the mpt3sas corner of it, and you just need to know how many phys your host has. That's literally the whole vibe of this page. It's from the Kernel API Manual, and it is, no cap, so straightforward. ๐ฆ
โจ NAME โจ
mpt3sas_config_get_number_hba_phys โ obtain number of phys on the host ๐ซ
like yes, that's it, that's the function. she's here to count phys. periodt.
๐ธ SYNOPSIS ๐ธ
int mpt3sas_config_get_number_hba_phys (struct MPT3SAS_ADAPTER *ioc , u8
*num_phys );
copy it exactly, bestie, don't get creative with the signature ๐
๐ ARGUMENTS ๐
iocโ the per adapter object, i.e. the little passport for your adapter. main character energy, honestly.num_physโ a pointer that gets returned with the number of phys. so you pass in the address and it hands you back the count ๐
๐ง CONTEXT ๐ง
sleep.
yep. that's the whole section. it sleeps. sleep. as in, you can sleep during this one โ it's not one of those "must not sleep" panic situations, so breathe ๐ฎโ๐จโจ
๐ฅ RETURN ๐ฅ
0for success ๐- non-zero for failure ๐
that's the whole deal. 0 = slay, anything else = not slay.
๐ SEE ALSO ๐
okay this section is long, like she ate and left no crumbs. Every single one of these, fr fr:
- 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_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_raid_volume_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)
ngl this list is giving "and friends" energy โ but every single entry matters, so don't skip any or I will know ๐
๐ that's the whole page, bestie. short, sweet, extremely functional. now go count those phys. ๐ซถ
this little love letter lives in ./drivers/scsi/mpt3sas, dated October 2026, and it's signed off on the mpt3sas_conf...ber_hba_phys(9) page itself ๐
โจ (yes the title is truncated with ..., no I will not be fixing it, that's what the original says ๐)
๐ฆ 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