lpfc_poll_store(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… lpfc_poll_store(9) β€” a Kernel API Manual moment

okay so bestie, welcome to the Kernel API Manual page for lpfc_poll_store. this is a sysfs store function, meaning it's the little goblin that runs when you echo something into a file. and it sets exactly one thing. iconic behavior honestly πŸŽ€


✨ NAME ✨

lpfc_poll_store β€” set the value of cfg_poll for the adapter. that's it. that's the whole job. no cap πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

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

🌸 ARGUMENTS 🌸

  • dev β€” the class device, which gets converted into a Scsi_host. glow-up of the century honestly 🫢
  • attr β€” the device attribute. not used. she's just there for moral support πŸ’…
  • buf β€” one or more lpfc_polling_flags values. this is the actual payload bestie πŸ“
  • count β€” not used. slacking, but we forgive her πŸ’€

⭐ NOTES ⭐

the contents of buf get converted to an integer, and then that integer gets checked to make sure it's a valid value. vibe check for numbers, essentially βœ…


πŸ”₯ RETURN πŸ”₯

  • -EINVAL β€” if the buffer can't be converted, or if it's out of range ✨

...and on success? the length of the buf. slay 🌈

lowkey a warning: garbage in buf gets you -EINVAL and nothing else. the conversion is not feeling generous πŸ’œ

πŸ‘‘ SEE ALSO πŸ‘‘

the kernel file ./drivers/scsi/lpfc/lpfc_attr.c, and also literally the entire lpfc extended family, all in (9):

like i said. the whole family reunion 🧚


and that's the page, bestie!! it lives in ./drivers/scsi/lpfc, it's dated October 2026, and it's from the Kernel API Manual β€” so next time someone asks where you learned all this, you can say a group chat told you. periodt πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from