> There is no way to do this in the driver. > > By the time the driver is engaged, its too late, the name and bindings > are chosen. You need to be able to change the bindings/names earlier.
Perhaps understanding the problem better might give us some ideas. Generally, driver names are completely insignificant. You should be able to name and rename your driver module to literally anything, as long as it does not conflict with other driver names. It just doesn't matter. What matters is what devices it exports to the system. A typical character driver does that via ddi_create_minor_node(). Can a driver named "foo" create minor nodes named "bar"? Of course it can. Should the network link name hardwired to the driver name providing the link? Of course it shouldn't. Kernel subsystems that propagate driver names too far into userspace ain't doing it right. -Artem _______________________________________________ opensolaris-code mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
