[oss-devel] Obsoleted Solaris DDI functions?

Hannu Savolainen hannu at opensound.com
Mon Feb 4 22:55:00 EET 2008


Mario Goebbels kirjoitti:
> Hi,
>
> Are there any actual implementation differences between ddi_mem_getXX
> and ddi_getXX in Solaris Nevada?
>
> I've looked in sunddi.h and ddi_obsolete.h. I'd have expected #defines
> redirecting the obsoleted functions to the new ones, but there aren't.
> So I suppose there's different code involved here? The web isn't exactly
> helpful in finding out.

The reason for using the obsolete functions is portability. The same OSS 
driver binaries work both under Solaris 10 and 11 but only if we use the 
obsolete functions. The obsolete ones are defined in all Solaris 
versions (up to NV). The new ones are not defined by Solaris 10 (and 
earlier).

> Would there be any benefit of using these new functions for Solaris 11?
>   
Who knows. My understanding is that these functions have just been renamed.

Best regards,

Hannu


More information about the oss-devel mailing list