sci_port_is_phy_mask_valid(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

sci_port_is_phy_mask_valid β€” okay so bestie, the NAME line literally ends in a dash and then nothing. No description, no little tagline, just sci_port_is_phy_mask_valid - and then silence. Iconic of it honestly. We're in the <pink>Kernel API Manual</pink>, section 9, and this is the girl who tells you whether a PHY mask is valid for a port. That's the whole vibe. πŸŽ€


✨ SYNOPSIS ✨

bool sci_port_is_phy_mask_valid (struct isci_port *iport , u32 phy_mask
);

She takes two things and hands you back a bool. Lowkey the simplest little signature ever. 🫢


🌸 ARGUMENTS 🌸

  • iport β€” the port object πŸšͺ β€” this is the port you're asking about, like "hey can this specific port handle the mask". It's a struct isci_port *.
  • phy_mask β€” the PHY mask that belongs to this port 🎭 β€” the thing you're getting the validity check on, a u32.

πŸ’– DESCRIPTION πŸ’–

So this method returns a true value if the port's phy mask can actually be supported by the <purple>SCU</purple>. That's it, that's the job. ✨

Here's the list of valid PHY mask configurations for each port β€” memorize it, flashcard it, put it on your wall, no cap πŸ“:

  • Port 0 β€” [[3 2] 1] 0
  • Port 1 β€” [1]
  • Port 2 β€” [[3] 2]
  • Port 3 β€” [3]

(yes, Port 0 really does have two spaces in there. Copy it exactly. Don't be cute with it πŸ™ˆ)

Heads up: those bracket nestings are literal β€” keep them character for character or the whole vibe check fails.

This method returns a boolean indication specifying if the phy mask can be supported πŸ’β€β™€οΈ:

  • true β€” this is a valid phy assignment for the port βœ… slay
  • false β€” this is not a valid phy assignment for the port ❌ not slay

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/scsi/isci/port.c β€” that's the main character file right there πŸ‘‘

And her whole friend group, all in (9):


Okay that's the whole page, bestie πŸ’œ β€” sign-off time: this one lives in ./drivers/scsi/isci, it's dated <cyan>October 2026</cyan>, and it's filed under sci_port_is_phy_mask_valid(9). Go off, kernel girlies πŸŒˆπŸ‘‘

πŸ“¦ where this page comes from