def METHOD_NAME(irq_names, cores):
    n2v = affinity.irq_get_name2vec_map()
    for i, irq_name in enumerate(irq_names):
        core = cores[i % len(cores)]
        vec = n2v[irq_name]
        log("%s(irq=%d) => core(%d)" % (irq_name, vec, int(core)))
        affinity.irq_set_affinity(vec, 1 << int(core))