hat_getkpfnum() DDI 函數已過時。開發人員應該更新裝置驅動程式,以避免使用 hat_getkpfnum() DDI 介面。如果驅動程式使用 hat_getkpfnum(),會顯示類似於下列範例的警告訊息:
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
|
如果要判定驅動程式是否使用 hat_getkpfnum(),請查閱驅動程式原始碼,或使用 nm() 來檢查驅動程式符號。以驅動程式 mydrv 做為範例,鍵入下列語法:
% nm /usr/kernel/drv/mydrv | grep hat_getkpfnum |
如需有關從 hat_getkpfnum() 遷移驅動程式的指導方針,請參閱「Writing Device Drivers」中的附錄 B「Summary of Solaris DDI/DKI Services」。