On 25/08/09 09:24 AM, Russell Mitchell wrote:
I know this thread is old, but It directly relates to my problem. I'm using ILL_START_WALK_ALL() in my driver, and it is now causing a kernel panic with S10 U5. More specifically, my driver works fine with the base installation of S10 U5, but there is a patch (I'm not sure which one yet) that enables the failure. I realize now that I shouldn't be using ILL_START_WALK_ALL now, but need help in figuring out the 'right' way to do it. Currently, I'm doing the following:ill_t *il; ip_stack_t *ipst; ill_walk_context_t ctx; ipst= netstack_find_by_stackid(GLOBAL_NETSTACKID)->netstack_ip; for (il=ILL_START_WALK_ALL( &ctx, ipst ); il!=NULL; il=ill_next( &ctx, il )) {
The above are all what we term private interfaces and are thus liable to change from patch to patch, without any warning. They're not intended to be public interfaces used by folks outside of the core source code tree. In Solaris 10 Update 7, the interfaces found in /usr/include/sys/neti.h became available for public use. In this case, net_phygetnext() would seem to be what you're looking for. Solaris 10 Update 4 was the first Solaris 10 update to introduce this function but as a private interface. It was refined for Solaris 10 Update 7 and made public. Please see the manual pages shipped with S10U7 for more information. Darren _______________________________________________ networking-discuss mailing list [email protected]
