This describe GM8126 ioctl functions: Examples

GM8126 DVR