lpfc_oas_vpt_store(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– lpfc_oas_vpt_store(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual ✨ this one's a little sysfs store function and honestly? it ate. let's get into it 🫢


🌸 NAME 🌸

lpfc_oas_vpt_store β€” store the wwpn of the vport whose targets maybe get enabled for Optimized Access Storage (OAS)</> operations πŸ’…

like, you hand it a wwpn, and the targets hanging off that vport maybe get switched on for OAS stuff. that's the whole vibe. πŸ¦‹


✨ SYNOPSIS ✨

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

no cap, that's the exact signature β€” don't come for me about the line break, that's just how it's written 😭


πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the class device that gets converted into a Scsi_host. that's the glow-up. πŸ¦‹
  • attr β€” the device attribute. it's literally not used. it's just there, main character energy by proximity only πŸ™ˆ
  • buf β€” the buffer you're passing the info through. this is where the wwpn lives. πŸ’Œ
  • count β€” the size of that data buffer. gotta know how much buffer you're buffering. ⭐

πŸ”₯ RETURN πŸ”₯

  • -EINVAL β€” count is invalid, or the wwpn byte is invalid. nope, not today πŸ’€
  • -EPERM β€” OAS is not supported by this hba. the hba said "not my era" 😭
  • value of count β€” success!! slay, you did it πŸ‘‘βœ¨
ok real talk, the negative values are error returns and the positive one is the win. read the number, know your fate. πŸ’…

🌈 SEE ALSO 🌈

the whole friend group, fr fr. kernel file ./drivers/scsi/lpfc/lpfc_attr.c, plus:

like I said. the whole group chat. iykyk πŸ’œ


and that's the page!! this one lives in ./drivers/scsi/lpfc and it's dated October 2026, so mark your calendars bestie πŸŽ€ go forth, store that wwpn, and remember β€” OAS is maybe enabled, not guaranteed, and that hba better support it or it's -EPERM for you πŸ’€πŸ’–βœ¨

πŸ“¦ where this page comes from