DEVID_CMP
if (DEVID_CMP(d->d_id, link->id) && d->d_ops == ops)
else if (link->id != NULL && !DEVID_CMP(link0->id, link->id))