thread_info symbol not found

Trying to use thread_info method listed in kernel functions (https://developer.apple.com/documentation/kernel/kernel_functions ) in a kext. But when trying to load the kext I am getting the following error.



kextlibs --undef-symbols <kext>

For all architectures:

com.apple.kpi.bsd = 15.6

com.apple.kpi.iokit = 15.6

com.apple.kpi.libkern = 15.6

com.apple.kpi.mach = 15.6


For x86_64:

1 symbol not found in any library kext:

_thread_info


Could you please let me know what is the required dependency I am missing.


Thanks

Replies

As far as I can tell

thread_info
isn’t available as KPI. Please file a bug against the documentation for indicating that it is.

What were you planning to do with

thread_info
from inside the kernel?

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Thank you for the quick response. I want to check whether that particual thread is running or terminated. So could you please suggest another method which takes a TID and can give the same information.


Thanks in advance.

A thread you control? Or some arbitrary thread? And, if it’s the latter, a kernel thread? Or a user thread?

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

arbitary kernel thread.


Thanks