cros_ec_sensors_core_init(9)
π cros_ec_sensors_core_init(9) β like, the Kernel API Manual bestie β¨
okay so picture this: you're in Kernel API Manual land and this little function cros_ec_sensors_core_init is literally the glow-up phase β it's the basic initialization of the core structure. it doesn't do the whole makeover, it just sets the foundation so the rest of the cros_ec sensor squad can eat later π
β¨ SYNOPSIS β¨
int cros_ec_sensors_core_init (struct platform_device *pdev , struct
iio_dev *indio_dev , bool physical_device , cros_ec_sensors_capture_t
trigger_capture );
she takes four arguments, returns an int, and yes she's that girl π«Ά
πΈ ARGUMENTS πΈ
pdevβ the platform device created for the sensor. like, her whole origin story, bestie πindio_devβ the iio device structure of the device. this is the actual vibe container the sensor lives in π¦physical_deviceβ abool, and it'strueif the device refers to a physical device. no cap, that's the whole check πtrigger_captureβ acros_ec_sensors_capture_tfunction pointer that gets called when the buffer is triggered. it's hanging around for backward compatibility, so be nice to it, she's legacy π iykyk
π« RETURN π«
0 on success, -errno on failure. classic. literally every kernel function's main character energy π
π¦ SEE ALSO π¦
the kernel file lives at ./drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c β go read the source, it's giving transparency β¨
and the whole friend group shows up here:
cros_ec_sensors_core_register(9)cros_ec_motion_send_host_cmd(9)cros_ec_sensors_idx_to_reg(9)cros_ec_sensors_read_until_not_busy(9)cros_ec_sensors_read_data_unsafe(9)cros_ec_sensors_read_lpc(9)cros_ec_sensors_read_cmd(9)cros_ec_sensors_capture(9)cros_ec_sensors_core_read(9)cros_ec_sensors_core_read_avail(9)cros_ec_sensors_core_write(9)
and that's the whole page, bestie π
this gem is from ./drivers/iio/common/cros_ec_s..., dated October 2026, and it's filed under cros_ec_sensors_core_init(9) β 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