On 17/11/10 10:06 AM, Mark Simmons wrote:
I am somewhat new to "C" and I am writing a utility to print info concerning a LUNs multipathing state,class,driver,.... using MPXIO. I stumbled accross some info on the MPAPI but I do not know how to vew/query the data structures. I have not been able to find anything helpful on any web searches. Can anyone point me to some explainations on how to use the API? Hopefully it will include some sample code.
http://src.opensolaris.org/source/search?q=MP_GetMPLogicalUnitProperties&defs=&refs=&path=&hist=&project=%2Fonnv gives you a good place to start. I suggest reviewing the code in mpathadm.c which calls that function: http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/cmd/mpathadm/mpathadm.c#722 James C. McPherson -- Oracle http://www.jmcp.homeunix.com/blog _______________________________________________ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opensolaris-code