__subdev_set_power(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __subdev_set_power(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual entry for __subdev_set_power β€” it's giving β€œflip the power on one single subdev,” and we're keeping every deet. ✨

πŸŽ€ NAME πŸŽ€

__subdev_set_power β€” changes the power state of one single subdev. one subdev, power state, handled. periodt. πŸ’–

🌸 SYNOPSIS 🌸

int __subdev_set_power (struct v4l2_subdev *sd , int on );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • sd β€” the subdevice whose power state you're changing. like, the main character subdev. πŸ‘‘
  • on β€” 1 to enable power or 0 to disable. binary bestie behavior, fr fr. ⚑

✨ DESCRIPTION ✨

It returns the result of the s_power subdev operation β€” or -ENXIO if the sd argument is NULL. NULL gets you -ENXIO, okay? 🫢

And if the subdevice does not implement s_power, it returns 0. so yes, no s_power equals a chill 0, no cap. πŸ’…

πŸ”₯ SEE ALSO πŸ”₯


cute sign-off: this page's source/version is ./drivers/media/platform/samsu..., dated October 2026. bye bestie, go set some power states responsibly πŸ’–βœ¨

πŸ“¦ where this page comes from