v4l2_i2c_subdev_addr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, this is v4l2_i2c_subdev_addr(9) from the Kernel API Manual β€” tiny helper, big β€œI know my I2C address” energy, and I'm obsessed. πŸ’–


🌸 NAME 🌸

the function v4l2_i2c_subdev_addr β€” returns i2c client address of &struct v4l2_subdev. That's the whole assignment, and she understood it. periodt. πŸ’…

✨ SYNOPSIS ✨

unsigned short v4l2_i2c_subdev_addr (struct v4l2_subdev *sd );

That's the exact signature, character-for-character β€” yes, including that space before );. πŸ™ˆ

πŸŽ€ ARGUMENTS πŸŽ€

  • sd β€” pointer to struct v4l2_subdev. That's the subdev pointer you're handing over, bestie. 🫢

πŸ’… DESCRIPTION πŸ’…

Returns the address of an I2C sub-device. No cap, that's the function's whole flex: you give it the subdev pointer, it gives you the address. πŸ’–

It's giving β€œsmall function, clear purpose,” and we respect it. ✨

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file: ./include/media/v4l2-common.h β€” that's the home base. 🏠

Also, these cuties are in the same orbit:

mwah πŸ’‹ β€” this page comes from ./include/media, is dated October 2026, and belongs to the v4l2_i2c_subdev_addr(9) entry in the Kernel API Manual. bye bestie, go get that address! 🫢✨

πŸ“¦ where this page comes from