lpfc_oas_lun_state_change(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… lpfc_oas_lun_state_change(9) β€” like, the Kernel API Manual chapter you actually wanna read πŸŽ€

okay so bestie, welcome to lpfc_oas_lun_state_change, straight out of the Kernel API Manual, section 9 ✨ this is the little function that flips a LUN's OAS state on or off and honestly? it's giving tiny-but-powerful. let's get into it πŸ¦‹


✨ NAME ✨

lpfc_oas_lun_state_change β€” enable/disable a lun for OAS operations πŸ’«


🌸 SYNOPSIS 🌸

ssize_t lpfc_oas_lun_state_change (struct lpfc_hba *phba , uint8_t
vpt_wwpn[] , uint8_t tgt_wwpn[] , uint64_t lun , uint32_t oas_state ,
uint8_t pri );

πŸŽ€ ARGUMENTS πŸŽ€

  • phba β€” the lpfc_hba pointer, bestie. that's your hba, front and center πŸ‘‘
  • vpt_wwpn β€” the vport wwpn, passed by reference 🫢
  • tgt_wwpn β€” the target wwpn, also by reference, no cap πŸ’–
  • lun β€” the fc lun that's getting its oas state set πŸ“
  • oas_state β€” the oas state you're setting onto the oas_lun ✨
  • pri β€” priority. yes that's the whole description. iconic of it ngl πŸ’…

🌈 DESCRIPTION 🌈

so this routine enables (OAS_LUN_ENABLE) or disables (OAS_LUN_DISABLE) a lun for OAS operations. that's the whole vibe check β€” one function, two moods, and you pick which one with oas_state πŸ”₯


⭐ RETURN ⭐

  • SUCCESS: 0 β€” slayed, it worked πŸ’–
  • -ENOMEM β€” failed to enable an lun for OAS operations 😭 out of memory, tragic
  • -EPERM β€” OAS is not enabled πŸ’€ like sorry babe, permission says no

πŸ¦‹ SEE ALSO πŸ¦‹

the og kernel file lives at ./drivers/scsi/lpfc/lpfc_attr.c and it's surrounded by an absolutely massive friend group β€” here's literally every single one, no skips, i would never πŸ™ˆ


and that's the whole page, bestie 🫢 this icon lives in ./drivers/scsi/lpfc, dropped in October 2026, and it answers to the name lpfc_oas_lun_state_change(9). go forth and set those lun states πŸ’œβœ¨

πŸ“¦ where this page comes from