La funzione DDI hat_getkpfnum() è obsoleta. Gli sviluppatori dovrebbero aggiornare i propri driver in modo da non utilizzare l'interfaccia DDI hat_getkpfnum(). Se un driver utilizza hat_getkpfnum(), vengono visualizzati messaggi di avvertimento simili ai seguenti:
WARNING: Module provadrv 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 |
Per determinare se un driver utilizza hat_getkpfnum(), esaminare il suo codice sorgente o i suoi simboli usando nm(). Usando come esempio il driver provadrv, digitare la sintassi seguente:
% nm /usr/kernel/drv/provadrv | grep hat_getkpfnum |
Per informazioni sulla migrazione dei driver da hat_getkpfnum(), vedere l'Appendice B, Summary of Solaris DDI/DKI Services del Writing Device Drivers.