Questions tagged [iokit]

The I/O Kit is a framework for driver development in the xnu Kernel which drives Apple's Mac OSX and iOS operating systems.

The I/O Kit is a framework in the xnu Kernel which drives Apple's Mac OSX and iOS operating systems. It can be used to implement device drivers in kernel space, or in some cases, user space. It can also be used for communicating with drivers from application code.

An introduction to the I/O Kit may be found at http://developer.apple.com/library/mac/#documentation/DeviceDrivers/Conceptual/IOKitFundamentals/Introduction/Introduction.html

502 questions
0
votes
1 answer

Getting IODeviceTree path using IOKit

I'm trying to get the IODeviceTree path of a device using the IOKit framework. I'm able to get the IOService path (IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/SATA@B/AppleMCP79AHCI) of the device using this code: CFMutableDictionaryRef…
indragie
  • 18,002
  • 16
  • 95
  • 164
0
votes
1 answer

IOSharedDataQueue example

Where can i found sample code for using IOSharedDataQueue ( i want to send data from user-space to kernel-space)?
mii
  • 1
  • 1
0
votes
1 answer

On Linux, what's a good way to to use HID reports over USB?

On macOS, I use IOKit to get and set HID reports over a USB connection (for the curious, this is a controller for a standing desk that allows you to raise and lower the desk programmatically). I can get a list of devices using an…
Matt Patenaude
  • 4,497
  • 1
  • 22
  • 21
0
votes
1 answer

SIP off on mac os but still cant load my kext

i,m new to kext programming so my problem is: i,m running macOS 10.11.6 i have turned SIP off but when i try to load my kext using kextload and using the -v flag i get that my kext was successfully loaded: *Requesting load of…
yazan daba
  • 219
  • 5
  • 11
0
votes
1 answer

Cannot resolve osx compile error

I am trying to use IOKit library example for retrieving osx related system information as described here: https://developer.apple.com/library/mac/technotes/tn1103/_index.html Undefined symbols for architecture x86_64: "_IOObjectRelease", referenced…
Riddhi Rathod
  • 115
  • 1
  • 10
0
votes
1 answer

Build fails when using methods from I/O Kit on XCode

I need to perform some operations in my C++ app upon sleep and wake up of Mac OS. I am being pointed to using I/O Kit. I followed this guide, specifically "Listing 3". No build errors occurred with the #include directives for IOKit. However, build…
Obay
  • 3,135
  • 15
  • 55
  • 78
0
votes
1 answer

creating a block device programmatically in mac os x using iokit framework

As i am a total noob to mac os x programming i am having some problems understanding this.I want to create a block device in mac os x leopard which would act as a normal drive in mac os x and after that i want to define the geometry of that device…
user451361
  • 21
  • 3
0
votes
1 answer

Reading PCI config space in OS X / Darwin KEXTs

In Linux or Windows, one can read the PCI config space of a device from an arbitrary driver (not necessarily the one "owning" that particular PCI device). On Linux, one can do it via pci_read_config_*(). Is there any way of doing this from a KEXT…
Mircea
  • 1,841
  • 15
  • 18
0
votes
1 answer

Get a string representation of Constant or Enum in IOKit, possible?

Is there a way to get a string representation for the Constants and enums defined in IOKit? I making a forage into IOKit and trying to console log out some parameter which USB devices return. But I'm ending up with lists of numbers. Is there another…
Ross
  • 14,266
  • 12
  • 60
  • 91
0
votes
1 answer

DeviceRequest of IOUSBDevice returns 0xe000404f on OS X

I'm working on the driver and application for USB device to update the firmware via DFU. I have USB device that worked correctly. After that I try to update the firmware of the device, and while downloading of the firmware I unplug the usb cable.…
Evgeniy
  • 403
  • 1
  • 8
  • 18
0
votes
1 answer

Kext driver is not responding after manual reset USB device on Mac OS X

I'm working with Bluetooth headset connected to the computer with Mac OS X operating system via USB. I have application running in User space and also kext driver that works with headset by sending device requests and reading/writing pipes. To…
Evgeniy
  • 403
  • 1
  • 8
  • 18
0
votes
0 answers

USB connection to xbox one

I am trying to create a USB connection from my mac to my xbox one so I can use the keyboard and mouse to simulate a controller. I can not seem to find out how to connect the console and my computer in an IOKit connection to start sending data. I…
0
votes
1 answer

What keys should I specify in the matching dictionary to only detect every storage USB device on mac os x?

I'm working on a cocoa app that detects any USB storage device (flash disk, Smartphone...) connected to the Mac and then use its files.When creating the matching dictionary I have to specify some keys and their values to only detect storage devices.…
user3742053
  • 83
  • 1
  • 1
  • 10
0
votes
1 answer

Current USB Device Power Draw

I am writing a USB driver and have a popup that contains specific information about the currently selected USB device. However, I seem unable to find any way to determine the current power being used by the device. I can obtain the current power…
Paige DePol
  • 1,121
  • 1
  • 9
  • 23
0
votes
0 answers

IOS 8 - Deny IOKit notice - Whats causing this

I am using multipeer/ibeacon framework to discover and communicate between IPAD devices. I was debugging a issue w.r.t random disconnections in the session thats established between ipads and found the following message in the console of all devices…
srini
  • 89
  • 4
  • 16