Apologies if this is a dumb question, but for someone who hasn't done
a lot of kernel work, how would one determine that task_policy_get
is not a usable KPI?
That is not a dumb question, alas. Indeed, back when I used to support KEXT development (these days other folks in DTS have taken over that work) I wrote QA1575
Supported KPIs to clarify this situation.
Note Sadly one of the documentation migration steps since 2008 has dropped the
FindKPI.py attachment. That’s hard to fix (because all Q&As are now in the Documentation Archive) so I’m including a copy here.
So what I am doing is working on a FUSE based file system.
I’m going to encourage you to look at doing this with a
File Provider extension. FUSE relies on the VFS KPI and, while that hasn’t been formally deprecated, Apple has announced that we plan to replace and then deprecate, and then eventually drop support for, all KPIs. Indeed, we’ve already been through this process for NKEs.
For some reason on the M1 some of the client processes seem to be
getting a high qos number
A high QoS value is not at all unusual. Ideally you’d do your IPC using a mechanism that supports QoS donation, but this is hard when running inside the kernel.
I have two suggestions here:
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"