Programmatically retrieve hard drive information on OS X

I need a way to get full information about the hard drive on OS X, that is, all the names of the hard drive models, SATA / ATA controllers, volumes, drive IDs, etc. I checked diskutil, but does not contain SATA information about the controller, it system_profilercontains all the information I need, but its XML output is not necessarily organized as I would like. Is there any low-level Carbon / C API that would allow me to do this?

+3
source share
1 answer

Take a look at IOKit . There is also this question on StackOverflow.

+4

Source: https://habr.com/ru/post/1769651/


All Articles