> Is somebody able to post a little example how to get > such a pm-info for one disk? > I don't need a detailed comment for everything, just > some lines of code to play with. > > for example i would like to know the idle time ( > PM_GET_TIME_IDLE ) of disk "/dev/dsk/c0t1d0" ..
See http://www.smart.net/~rlhamil/pm_status.c for something that _maybe_ does what you want. The output isn't pretty, I don't think I know what I'm doing, and some of it doesn't make much sense to me. But some of it does, and it didn't core dump for me. So maybe it works. If it does, suggestions on how to pretty it up (not the least of which would be a reasonably easy way to find more recognizable names, like c#t#d# for disks) might be in order, or someone could just take it from here and post the results. To anyone else that reads this more that a few weeks after the date posted: I don't promise that URL will remain valid forever! This message posted from opensolaris.org _______________________________________________ opensolaris-code mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
