【jetson】About /dev/videoX,how to set a specified value of X?

How to specify the value of X of/dev/videoX when developing and registering a sensor device in the Nvidia software framework?

I know how to use the v4l2 interface video_register_device(struct video_device *vdev,enum vfl_devnode_type type,int nr) When setting the parameter nr>=0, it is possible to specify the value of X for videoX as nr, but Nvidia’s software framework uses tegracam_device_degister. So how should we specify the value of X?

How does Nvidia’s software framework call the video_degister_device interface?

The nvidia sdk version is Jetpack 6.2(R36.4.3)

Hi,
video_register_device() is supposed to work. Please give it a try.

Several relevant topics:
Multiple nodes/instances while running IMX477 usb cam on Xavier NX - #5 by JerryChang
How to load /dev/video* starting with RGB camera - #2 by ShaneCCC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.