Finding HBA WWN in kernel mode

Hi all,

My requirement is, if a disk (LUN) is enumerated by HBA, I want to find the
HBA’s WWN. I could able to find some of the HBA APIs to do it, but those
things can be used only in user mode, not in kernel mode.

To my knowledge, the only possible way to do the same from the kernel mode
is, to issue WMI query *MSFC_FCAdapterHBAAttributes *class. Is there any
other clean way to find the HBA’s WWN, like kernel mode API or issuing IOCTL
storport driver?


Regards,
T.V.Gokul.