v4l2_ctrl_grab(9) Mark the control as grabbed or not grabbed.

SYNOPSIS

void v4l2_ctrl_grab(struct v4l2_ctrl * ctrl, bool grabbed);

ARGUMENTS

ctrl

The control to (de)activate.

grabbed

True if the control should become grabbed.

DESCRIPTION

This sets or clears the V4L2_CTRL_FLAG_GRABBED flag atomically. Does nothing if ctrl == NULL. The V4L2_EVENT_CTRL event will be generated afterwards. This will usually be called when starting or stopping streaming in the driver.

This function assumes that the control handler is not locked and will take the lock itself.

COPYRIGHT