lpfc_disable_oas_lun(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… lpfc_disable_oas_lun(9) β€” the Kernel API Manual moment

okay so bestie, welcome to lpfc_disable_oas_lun(9), straight out of the Kernel API Manual ✨ this is the little function that disables a lun for OAS operations, and we're gonna walk through it together, no cap 🫢


🌸 NAME

lpfc_disable_oas_lun β€” disables a lun for OAS operations πŸ’…


✨ SYNOPSIS

bool lpfc_disable_oas_lun (struct lpfc_hba *phba , struct lpfc_name
*vport_wwpn , struct lpfc_name *target_wwpn , uint64_t lun , uint8_t pri
);

she takes five arguments and returns a bool, periodt πŸŽ€


πŸ¦‹ ARGUMENTS

  • phba β€” Pointer to host bus adapter structure. like, the whole HBA vibe check, iykyk.
  • vport_wwpn β€” Pointer to vport's wwpn information 🌈
  • target_wwpn β€” Pointer to target's wwpn information πŸŽ€
  • lun β€” Lun. that's it. that's the whole description. iconic of her honestly.
  • pri β€” Priority ⭐

πŸ’– DESCRIPTION

This routine disables a lun for oas operations πŸ’… and the routines does so by doing the following, bestie, in this exact order:

  1. Checks to see if the device data for the lun is created.
  2. If present, clears the flag indicating this lun is for OAS.
  3. If the lun is not available by the system, the device data is freed.
Return codes: false - Error, true - Success 😭 so yeah, false is the bad one, don't get it twisted.

πŸ”₯ SEE ALSO

Kernel file ./drivers/scsi/lpfc/lpfc_scsi.c

and then the whole friend group, fr fr 🧚:


okay that's the whole page bestie, you ate that πŸ’…βœ¨ so anyway this lil masterpiece lives in ./drivers/scsi/lpfc, dated October 2026, and she's officially lpfc_disable_oas_lun(9) β€” go forth and disable those luns responsibly πŸ‘‘πŸŽ€πŸ’–

πŸ“¦ where this page comes from