pkg/pillar/vendor/github.com/shirou/gopsutil/disk/disk_darwin.h
int StartIOCounterFetch()
{
    if (IOServiceGetMatchingServices(kIOMasterPortDefault,
                                     IOServiceMatching(kIOMediaClass),
                                     &diskIter) != kIOReturnSuccess) {
        return 0;
    }

    return 1;
}
// Begins fetching IO counters.
//
// Returns 1 if the fetch started successfully, false otherwise.
//
// If the fetch was started successfully, you must call EndIOCounterFetch once
// done to release resources.
Begins fetching IO counters.
Returns 1 if the fetch started successfully, false otherwise.

If the fetch was started successfully, you must call EndIOCounterFetch once
done to release resources.
Begins fetching IO counters . Returns 1 if the fetch started successfully false otherwise . If the fetch was started successfully you must call EndIOCounterFetch once done to release resources .
int StartIOCounterFetch()
{
    if (IOServiceGetMatchingServices(kIOMasterPortDefault,
                                     IOServiceMatching(kIOMediaClass),
                                     &diskIter) != kIOReturnSuccess) {
        return 0;
    }
    return 1;
}
int StartIOCounterFetch ( ) { if ( IOServiceGetMatchingServices ( kIOMasterPortDefault , IOServiceMatching ( kIOMediaClass ) , & diskIter ) != kIOReturnSuccess ) { return 0 ; } return 1 ; }
Begins fetching IO counters.
Begins fetching IO counters .