Post

Replies

Boosts

Views

Activity

How to use DriverKit for transmission of network data packets?
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?
6
0
1.9k
May ’22
How to create a modem dial using USBSerialDriverKit
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.
4
0
1.5k
Jun ’21
How to use com.developer.driverkit.transport.usb entitlement
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. 
1
0
1.3k
Jun ’21