pmic_arb_read_data(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– pmic_arb_read_data(9) β€” Kernel API Manual bestie entry πŸ’–

okay so this is the Kernel API Manual page for pmic_arb_read_data(9), and we are doing this with full group-chat energy. no cap.


✨ NAME ✨

pmic_arb_read_data β€” reads pmic-arb's register and copy 1..4 bytes to buf.


πŸ¦‹ SYNOPSIS πŸ¦‹

void pmic_arb_read_data (struct spmi_pmic_arb *pmic_arb , u8 *buf , u32 reg , u8 bc );

🌸 ARGUMENTS 🌸

  • pmic_arb β€” the SPMI PMIC arbiter. that's the struct, bestie.
  • buf β€” output parameter, and the length must be bc + 1. literally do not mess this up.
  • reg β€” register's address. the place we're reading from.
  • bc β€” byte count -1. range: 0..3. so 0 to 3 inclusive, periodt.

πŸ‘‘ SEE ALSO πŸ‘‘

go peek at these too, they're iconic side quests:

  • Kernel file ./drivers/spmi/spmi-pmic-arb.c
  • struct spmi_pmic_arb_bus(9)
  • struct spmi_pmic_arb(9)
  • struct pmic_arb_ver_ops(9)
  • pmic_arb_write_data(9)

okay that's the whole page, mwah πŸ’‹ this one lives in source/version ./drivers/spmi, dated October 2026, and it's pmic_arb_read_data(9) from the Kernel API Manual β€” slay, stay hydrated, and check your buffer length 🫢✨

πŸ“¦ where this page comes from