cros_ec_sensors_core_init(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 β€” a bool, and it's true if the device refers to a physical device. no cap, that's the whole check πŸ”
  • trigger_capture β€” a cros_ec_sensors_capture_t function 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:


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