pcie_device_get(9)
π 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.hstruct 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms