How to use the stdlib/CF in DriverKit?

I am porting some code with heavy use of stdlib and CF.

Linking against CF produces the error: CoreFoundation is not available when building for DriverKit.

I get errors like error: no member named 'clock_t' in the global namespace.

What is the correct approach here?

Could I statically link stdlib?

Should I move my processing code to a separate process?

Related:

  • In this talk it is also mentioned that you can use Core Foundation in DriverKit...

  • In the 702 session, he is talking about being able to use frameworks from System Extensions, not DriverKit Extensions. He explicitly states that DriverKit extensions are the exception.

Add a Comment

Replies

The context that you DEXT runs in is very limited. You are not able to use Core Foundation and similar libraries.