zl3073x_read_u16(9)
π zl3073x_read_u16(9)
Okay bestie, so this one lives in the Kernel API Manual β that's the manual name, don't forget it β and it's genuinely one of the cutest little helpers in the whole zl3073x family. It reads a value out of a 16-bit register. That's it. That's the whole vibe. π
β¨ NAME β¨
zl3073x_read_u16 β read value from 16bit register
Like, literally the name says it all and honestly? Iconic. π
πΈ SYNOPSIS πΈ
int zl3073x_read_u16 (struct zl3073x_dev *zldev , unsigned int reg , u16
*val );
Three args in, an int out. Simple. Clean. No cap. β¨
π¦ ARGUMENTS π¦
zldevβ zl3073x device pointer. Your main character struct, the one holding the device you're talking to π«Άregβ register to write to. Yes, it says "write to" on a read function β I'm not the one who wrote it, I'm just delivering the facts verbatim, bestie π (it's the register you're pointing at, iykyk)valβ value to write. Same energy as above β the manpage says "value to write", and that's what I'm giving you, word for word π
No for real though β those two descriptions are copied exactly as the page has them. Don't come for me. π«Ά
π DESCRIPTION π
Reads value from given 16bit register. That's the entire description and honestly she ate and left no crumbs π β short, sweet, does exactly one thing. Reads. A 16-bit register. Done. π
β RETURN β
0on success π<0on error π β so like, literally anything negative means something went sideways. Check it, bestie, always check it.
π§ SEE ALSO π§
Kernel file ./drivers/dpll/zl3073x/core.c β and like, the whole friend group of sibling functions, all of them, in order, because we don't leave anyone out π:
zl3073x_read_u8(9)zl3073x_write_u8(9)zl3073x_write_u16(9)zl3073x_read_u32(9)zl3073x_write_u32(9)zl3073x_read_u48(9)zl3073x_write_u48(9)zl3073x_poll_zero_u8(9)zl3073x_do_hwreg_op(9)zl3073x_read_hwreg(9)zl3073x_write_hwreg(9)zl3073x_update_hwreg(9)zl3073x_write_hwreg_seq(9)zl3073x_ref_phase_offsets_update(9)zl3073x_ref_freq_meas_latch(9)zl3073x_ref_freq_meas_update(9)zl3073x_dev_phase_meas_setup(9)zl3073x_dev_start(9)zl3073x_dev_stop(9)zl3073x_dev_probe(9)
π the sign-off π
This page comes to you straight out of ./drivers/dpll/zl3073x, dated October 2026, and it's filed under zl3073x_read_u16(9) β so if you ever forget where you found me, that's where. Slay, go read your registers, drink some water, and remember to check your return value πβ¨πperiodt
π¦ 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