p->refcount = 1;
p->name = strdup(name);
+ p->index = index;
// Load information from kernel
int r = phy_get_info(p);
return r;
}
- DEBUG(p->ctx, "Allocated phy at %p\n", p);
+ DEBUG(p->ctx, "Allocated phy at %p (index = %d)\n", p, p->index);
*phy = p;
return 0;
}