Sample code for capture camera sensor raw data and do utils ioctl

For my application, I just need to capture raw sensor data and do gain and Exposure time control.
As far as I know, There are some exist tools such as v4l2-ctl and argus.
Are there any simple sample code for my reference?

hello 27653276,

there’s sample commands to access camera sensor directly.
please check Camera Software Development Solution for the [Approaches for Validating and Testing the V4L2 Driver] session.

you might also found several sample codes since they were 3rdparty tools,