pcie_device_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pcie_device_get(9) β€” from the Kernel API Manual, bestie ✨

okay so you're in the kernel API manual and you clicked on pcie_device_get(9) β€” iconic choice, let's get into it πŸŽ€

✨ NAME ✨

pcie_device_get β€” the little function that bumps up the reference count on your pcie device. that's it. that's the whole job. and she does it well πŸ’–

🌸 SYNOPSIS 🌸

void pcie_device_get (struct _pcie_device *p );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • p β€” the pcie_device object in question. your main character struct, basically πŸ‘‘

πŸ”₯ DESCRIPTION πŸ”₯

literally whenever this function gets called, it increments the reference count of the pcie device that this function was called on. no cap. that's the vibe β€” call it, refcount goes up, the device stays alive and thriving πŸ’…

like… if you're holding onto a pcie device and you need it to Not Disappear on you, this is your girl. she's not freeing anything, she's not doing anything cute and extra, she's just incrementing. periodt ✨

ngl there's exactly one thing she does and it's increment. don't go looking for side quests, bestie πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

okay this list is LONG and honestly it's giving "my references section has references" energy, but every single one of these is a real one so let's go 🌈

  • Kernel file ./drivers/scsi/mpt3sas/mpt3sas_base.h struct
  • MPT3SAS_TARGET(9)
  • MPT3SAS_DEVICE(9)
  • _internal_cmd(9)
  • _sas_device(9)
  • pcie_device_free(9)
  • pcie_device_put(9)
  • _boot_device(9)
  • _sas_port(9)
  • _sas_phy(9)
  • _sas_node(9)
  • _enclosure_node(9)
  • reset_type(9)
  • pcie_sg_list(9)
  • chain_tracker(9)
  • scsiio_tracker(9)
  • request_tracker(9)
  • _tr_list(9)
  • _sc_list(9)
  • _event_ack_list(9)
  • adapter_reply_queue(9)
  • io_uring_poll_queue(9)
  • virtual_phy(9)
  • hba_port(9)
  • htb_rel_query(9)
  • MPT3SAS_ADAPTER(9)

like… 26 entries?? she said "let me introduce you to my whole friend group" 😭 but fr fr they're all worth a read. especially pcie_device_put(9) and pcie_device_free(9) β€” those are the ones that give your refcount back, iykyk 🫢


mwah, that's the page πŸ’œ this one lives in ./drivers/scsi/mpt3sas and it's dated October 2026, and if you ever need to find her again just look up pcie_device_get(9) β€” she'll be right there, incrementing away πŸ§šβ€β™€οΈβœ¨

πŸ“¦ where this page comes from