It’s been clear here that private API is not allowed.
What private API is used? All I saw in the code were documented
IOKit calls. I thought that if something's obviously is exposed via
public API like IOKit, it would be considered public API.
I'm not trying to be contrary or anything, I'm simply trying to
figure out which aspect of that code should have set off warning bells
that it didn't.