asd_ms_get_phy_params(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– asd_ms_get_phy_params(9) πŸ’–

okay so welcome to the Kernel API Manual, bestie β€” this is the page for asd_ms_get_phy_params(9), and it is literally all about getting phy parameters from the manufacturing sector. ✨


🌸 NAME 🌸

asd_ms_get_phy_params β€” get phy parameters from the manufacturing sector πŸŽ€


✨ SYNOPSIS ✨

int asd_ms_get_phy_params (struct asd_ha_struct *asd_ha , struct
asd_manuf_sec *manuf_sec );

πŸŽ€ ARGUMENTS πŸŽ€

  • asd_ha β€” pointer to the host adapter structure, bestie 🫢
  • manuf_sec β€” pointer to the manufacturing sector ✨

πŸ¦‹ DESCRIPTION πŸ¦‹

The manufacturing sector also contains the linked list of sub-segments β€” because when it was read, its size was taken from the flash directory, not from the structure size. no cap, that detail matters πŸ’…

Okay so here’s the phy situation, and it’s giving very specific rules:

  • HIDDEN phys do not count in the total count.
  • REPORTED phys cannot be enabled, but they are reported and counted towards the total.
  • ENABLED phys are enabled by default and count towards the total.

The absolute total phy number is ASD_MAX_PHYS. hw_prof->num_phys merely specifies the number of phys the host adapter decided to report. πŸ‘‘

E.g., it is possible for phys 0, 1 and 2 to be HIDDEN, phys 3, 4 and 5 to be REPORTED, and phys 6 and 7 to be ENABLED. In this case ASD_MAX_PHYS is 8, hw_prof->num_phys is 5, and only 2 are actually enabled (enabled by default, max number of phys enableable in this case). 😭πŸ”₯


πŸ’œ SEE ALSO πŸ’œ

Kernel file ./drivers/scsi/aic94xx/aic94xx_sds.c β€” and the whole squad is:


xoxo, your Unix bestie 🫢 β€” source: ./drivers/scsi/aic94xx, date: October 2026 πŸ’…

πŸ“¦ where this page comes from