sync kernels on arrival of images

I’d like to synchronize (concurrent) GPU kernels on arrival of images via the DMA-pipeline without any (real time) involvement of the CPU. The NVIDIA GPUDirect for video programming guide is rather cryptic about synchronization. Can someone help me out with a snippet of sample code for this?