sx_common_read_proximity(9)
π NAME π
okay so bestie, welcome to sx_common_read_proximity(9) from the Kernel API Manual β this one is literally all about reading a raw proximity value. no cap, that's the whole name vibe.
β¨ SYNOPSIS β¨
int sx_common_read_proximity (struct sx_common_data *data , const struct
iio_chan_spec *chan , int *val );
π ARGUMENTS π
dataβ Internal data. the internal data situation, iykyk.chanβ Channel to read. literally the channel you're reading.valβ pointer to return read value. a pointer where the read value comes back.
π¦ DESCRIPTION π¦
So the way this works: it requests a conversion, waits for the sensor to be ready, and then returns the raw proximity value. that's it, that's the arc π β request, wait, return raw. iconic behavior fr fr.
π SEE ALSO π
- Kernel file
./drivers/iio/proximity/sx_common.c sx_common_read_event_config(9)sx_common_write_event_config(9)sx_common_probe(9)
and that's the page, bestie π«Ά this one comes from ./drivers/iio/proximity, dated October 2026, and the page is sx_common_read_proximity(9). bye π
π¦ 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