v4l2_ctrl_g_ctrl(9) Helper function to get the control's value from within a driver.

SYNOPSIS

s32 v4l2_ctrl_g_ctrl(struct v4l2_ctrl * ctrl);

ARGUMENTS

ctrl

The control.

DESCRIPTION

This returns the control's value safely by going through the control framework. This function will lock the control's handler, so it cannot be used from within the v4l2_ctrl_ops functions.

This function is for integer type controls only.

COPYRIGHT