zl3073x_pin_props_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… zl3073x_pin_props_get(9) β€” like, the pin properties getter, bestie

okay so this is a page straight out of the Kernel API Manual (yes, the kernel has a manual, we love that for it) and today's main character is zl3073x_pin_props_get. she's a function. she gets pin properties. iconic behaviour honestly πŸŽ€


✨ NAME ✨

zl3073x_pin_props_get β€” get pin properties πŸ’–

like… that's it, that's the whole vibe. she gets the pin props.


🌸 SYNOPSIS 🌸

struct zl3073x_pin_props * zl3073x_pin_props_get (struct zl3073x_dev
*zldev , enum dpll_pin_direction dir , u8 index );

look at her signature. she ate. no notes πŸ”₯


πŸ¦‹ ARGUMENTS πŸ¦‹

  • zldev β€” pointer to zl3073x device 🫢 (the whole device, she needs the context, periodt)
  • dir β€” pin direction 🌈 (like, which way is this pin going)
  • index β€” pin index πŸ‘‘ (which pin we're talking about, by the numbers)

πŸ’œ DESCRIPTION πŸ’œ

okay so here's what she actually does, step by step, no cap:

she looks for the firmware node for the given pin if it is provided by the system firmware (that's DT or ACPI, iykyk). then she allocates the pin properties structure, generates the package label string according to the pin type, and optionally fetches β€” from the firmware node, if that node actually exists β€” the board label, the connection type, the supported frequencies, and the esync capability. like she's thorough. she's doing the most and we respect it πŸ’…

⚠️ important bestie moment: the pointer that is returned by this function should be freed using zl3073x_pin_props_put. do not forget. do not ghost her. free her properly or it's giving memory leak 😭

⭐ RETURN ⭐

  • pointer to the allocated pin properties structure on success πŸŽ‰
  • error pointer in case of error πŸ’€ (yes, an error pointer, not just a sad NULL β€” that's the kernel's whole thing)

🧚 SEE ALSO 🧚


alright squad, that's the page 🌸 this little gem lives over in ./drivers/dpll/zl3073x and it was dated October 2026 β€” so she's from the future, lowkey iconic of her. go read the source, free your pointers, slay πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from