lpfc_topology_store(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so this is the Kernel API Manual page for lpfc_topology_store(9), aka Set the adapters topology field. She's here to set the adapter's topology field and handle all the lip drama. πŸ’…

✨ SYNOPSIS ✨

ssize_t lpfc_topology_store (struct device *dev , struct
       device_attribute *attr , const char *buf , size_t count );

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” class device that is converted into a scsi_host.
  • attr β€” device attribute, not used. Like, literally not used, bestie.
  • buf β€” buffer for passing information.
  • count β€” size of the data buffer.

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so the vibe check is: if val is in a valid range, then set the adapter's topology field and issue a lip. If that lip fails, reset the topology to the old value. No cap, that's the whole flow. 🫢

if the value is not in range, log a kernel error message and return an error. That's the boundary, periodt.

πŸ”₯ RETURN πŸ”₯

  • zero if val is in range and the lip is okay.
  • non-zero return value from lpfc_issue_lip.
  • -EINVAL β€” val out of range.

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file: ./drivers/scsi/lpfc/lpfc_attr.c β€” and the whole bestie squad is right here:


xoxo, your Unix bestie πŸ’‹ β€” source/version: ./drivers/scsi/lpfc, date: October 2026.

πŸ“¦ where this page comes from