pmic_arb_read_data(9)
π 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 bebc + 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
- 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