We have to pass third parameter of kstat_lookup() as the disk name we want to 
get information for. This can be either passed from command line or hard code 
in app. But, AS I have already explained that disk names are not fixed they are 
depend on the way the HDD are configured (SCSI: sd0, sd1 | IDE: dad0, dad1, 
etc). So, rather than passing this from command line or hard code, there should 
be another API that will be called before kstat_lookup() and return real disk 
names using which real HDD Serial number can be fetched.

Does this make sense ?

Thanks,
-Tejinder
-- 
This message posted from opensolaris.org
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to