KernelWanderers / OCSysInfo

Basic, high-level and efficient CLI for discovering, outputting and parsing hardware information from the current system.
MIT License
94 stars 14 forks source link

Update ioreg.py #10

Closed flagersgit closed 2 years ago

flagersgit commented 2 years ago

Sample:

import dumps.macOS.ioreg as ioreg
get = ioreg.IORegistryEntryFromPath(ioreg.kIOMasterPortDefault, b"IODeviceTree:/memory")
ioreg.IORegistryEntryCreateCFProperties(get, None, ioreg.kCFAllocatorDefault, ioreg.kNilOptions)[1]
kernel-dev commented 2 years ago

Looks great, thank you for your contribution :+1: