Reference

comedi_get_clock_source(3) on Linux

The text 1a74fe1b8f78, as Debian 12 (Bookworm) shipped it.

get master clock for a subdevice

comedi_get_clock_source(3) on Linux now