/* Copying and distribution of this file, with or without modification,
 * are permitted in any medium without royalty provided the copyright
 * notice and this notice are preserved.
 * This file is offered as-is, without any warranty.
 */
import std.stdio : writeln;
import amalthea.sys : loopctl;


void main(string[] args) {
    if (args.length != 2) {
        return;
    }
    string backingDevice = args[1];
    foreach(loop; loopctl.findDevicesByFile(backingDevice)) {
        writeln(loop);
    }
}
