As I understand, for Network packet transmission, IOKit use the following methods: 1. IOOutputQueue calls the outputPacket() method of network driver to send packets to the device. 2. IOGateOutputQueue dequeue packets on network driver's workloop (send packets to the network driver). And now, how does it implement using the DriverKit/NetworkingDriverKit framework? I have seen Networking has 4 packet queues: IOUserNetworkingRxSubmissionQueue, IOUserNetworkingRxCompletionQueue, IOUserNetworkingTxSubmissionQueue, IOUserNetworkingTxCompletionQueue; How to use them with IODispatchQueue? or IODataQueueDispatchSource?
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
I'm developing a modem driver based on DriverKit framework for a USB Ethernet adapater.
The current situation is that I can open the modem port in the /dev/ directory and send/receive data normally, but can't create Modem in the network preferences.
I found IOModemSerialStreamSync can be used to create modem in IOKit, but now how to create modem using DriverKit.
When testing my dext driver, the "unsatisfied entitlement:com.developer.driverkit.transport.usb"error is in console log. I. My request entitlements to use DriverKit was approved. And I have beed signed and notarized my dext driver.
Here are my steps:
1. “USB Transport-VendorID” capability has been enabled when creating my dext’s App ID.
2. Generate the new provisioning profile for my App ID and import it into Xcode. However I found "com.developer.driverkit.transport.usb" is not included listed on "additional entitlements" item.
3. Edit my project’s entitlements file contain the following for USB Transport:
<key>com.apple.developer.driverkit.transport.usb</key>
<array>
<dict>
<key>idProduct</key>
<integer>MyPid</integer>
<key>idVendor</key>
<integer>MyVid</integer>
</dict>
<array>
4. Sign and notarized.
5. Test my dext driver, the console log shows "unsatisfied entitlement:com.developer.driverkit.transport.usb"error.
Is it a problem with my steps or entitlements.
Is any sample code for USB driverkit?