parport_put_port(9)
π parport_put_port(9) π
ok so bestie, welcome to the Kernel API Manual β specifically the page for parport_put_port. this is the "i'm done with you now, bye" function for parallel ports, and yes it's as iconic as it sounds π
β¨ NAME β¨
parport_put_port β decrement a port's reference count π«Ά
like, you picked the port up, now you're putting it back down. politeness in kernel form, fr fr.
πΈ SYNOPSIS πΈ
void parport_put_port (struct parport *port );
void return, so nothing comes back at you β it's giving "no receipts needed" energy π
π¦ ARGUMENTS π¦
portβ the port π (that's it, that's the argument, she's simple and she's iconic)
β DESCRIPTION β
okay so here's the whole vibe: you should call this once for each call to parport_get_port, once the port is no longer needed. one call out for every call in, no cap β that's the whole contract π₯
and then the main character moment: when the reference count reaches zero (aka the port is no longer used by literally anyone), free_port is called. so the port gets its little farewell arc πβ¨
yes this means you can't just skip it. the port is waiting to be freed and you're the one holding up the show π
π SEE ALSO π
- Kernel file
./drivers/parport/share.cβ that's where the whole friend group lives π§ __parport_register_driver(9)parport_unregister_driver(9)parport_get_port(9)β the one you should be pairing this with, iykyk πparport_register_port(9)parport_announce_port(9)parport_remove_port(9)parport_register_dev_model(9)parport_unregister_device(9)parport_find_number(9)parport_find_base(9)parport_claim(9)parport_claim_or_block(9)parport_release(9)
and that's the page, bestie π this little number comes to you from ./drivers/parport, dated October 2026, and it's all about parport_put_port(9) β go forth and decrement responsibly πβ¨
π¦ 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