finddev
if ((d = finddev(dev, len, 0)) < 0) {
if ((p = finddev(devices.v[i].parent, devices.v[i].parentlen, 1)) < 0) {