Notas de la versión de Solaris 10 8/07

La función DDI hat_getkpfnum() es obsoleta (5046984)

La función DDI hat_getkpfnum() DDI es obsoleta. Los programadores deberían actualizar los controladores de dispositivos para que no utilicen la interfaz DDI hat_getkpfnum(). Si los controladores están utilizando hat_getkpfnum(), aparecerán advertencias parecidas al siguiente ejemplo:


WARNING: Module mydrv is using the obsolete hat_getkpfnum(9F)
interface in a way that will not be supported in
a future release of Solaris. Please contact the
vendor that supplied the module for assistance,
or consult the Writing Device Drivers guide,
available from http://www.sun.com for migration
advice.
---
Callstack of bad caller:
       hat_getkpfnum_badcall+93
       hat_getkpfnum+6e
       mydrv_setup_tx_ring+2d
       mydrv_do_attach+84
       mydrv_attach+242
       devi_attach+6f
       attach_node+62
       i_ndi_config_node+82
       i_ddi_attachchild+4a
       devi_attach_node+4b
       devi_attach_children+57
       config_immediate_children+6e
       devi_config_common+77
       mt_config_thread+8b

Para determinar si un controlador está utilizando hat_getkpfnum(), consulte el código fuente del controlador o examine los símbolos del controlador utilizando nm(). Utilice el controlador mydrv como un ejemplo y escriba la siguiente sintaxis:


% nm /usr/kernel/drv/mydrv | grep hat_getkpfnum

Para obtener directrices sobre cómo migrar los controladores de hat_getkpfnum(), consulte el Apéndice B, Summary of Solaris DDI/DKI Services de Writing Device Drivers.