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

iPad (iphone os) kernel extension

I have previously written an application for Mac OSX that includes a kernel extension. It does not drive any real hardware but is instead an in-kernel IOKit service. Now the task is to figure out if porting of the whole application is possible on…
Inso Reiges
  • 1,889
  • 3
  • 17
  • 30
0
votes
1 answer

Trap each SHIFT key independently on OS X

I have working code (here) that traps keycodes for non-modifier keydown events, and modifier-changed events. But if you do: LSHIFT down -> RSHIFT down -> RSHIFT up -> LSHIFT up ... the inner 2 actions will not trigger either of these hooks, because…
P i
  • 29,020
  • 36
  • 159
  • 267
0
votes
1 answer

USB driver not loading one USB image but loads another?

I have a usb driver with multiple IOKitPersonalities each with a IOMediaIcon entry. all works fine if the usb devices are plugged in after the kext has been loaded (kext loads fine, is signed, etc.). but after reboot of the computer, only ONE of the…
the surfer
  • 81
  • 6
0
votes
1 answer

IOKit get current power source

How do I get the current power source on a Mac, using IOKit? I want to see if the Mac is running via the built-in battery or via a power adapter.
lukas
  • 2,300
  • 6
  • 28
  • 41
0
votes
1 answer

How to get motherboard vendor/info on OS X programatically?

How to get motherboard vendor/info on OS X programatically? I didn't find any info in system_profiler. Is it possible to gather such info using obj C/C?
Serge
  • 2,031
  • 3
  • 33
  • 56
0
votes
1 answer

IOBlockStorageDevice and blockSizes, avoiding specfs limitations

I have an IOBlockStorageDevice device created, which reports the blocksize, as set by the user. It creates a /dev/diskX entry for the disk. If reportBlockSize returns 4096, and an attempt to write a single block is made, it writes exactly 1…
lundman
  • 1,616
  • 13
  • 25
0
votes
2 answers

Objective C / Arduino communication slow down

I have written an G code interpreter/control app for a cnc machine in objective C. Everything runs fine for the first 20 - 30 secs but after that the whole thing stops for an other 20 sec and resumes super slow. I made a video so you can see for…
0
votes
1 answer

Reading audio from a usb synth

I would like to experiment with real time audio and was wondering what options are there for accessing audio via a usb port? I would like to get data from this hardware in an audio stream. Is this sort of thing best handled by audio frameworks or…
some_id
  • 29,466
  • 62
  • 182
  • 304
0
votes
0 answers

How to get battery level from IOKit in iOS 3 SDK using theos?

So, I want to use IOKit to show the battery level as a percentage for iOS 3 SDK using theos, and it compiles correctly, but when it is trying to link some symbols, it says: Linking Application Battery... Undefined symbols: …
Dave1482
  • 3
  • 3
0
votes
2 answers

OS X 10.8 - Address space layout post syscall

I have disabled swapping altogether on my OS X 10.8.2 (which runs x86 LP64 kernel) box for experimental reasons, I know this is a bad idea. When I do a system call from any app what does the address space layout look like ? I.e. Now as entire…
0
votes
0 answers

Adding IOKit to iOS Project

I'm currently trying to add IOKit to my project. I linked against the IOKit dyn lib and linked against the provate header files. The problem is, that i get an error while building, as it says, that iokit dyn lib couldn't be found, but i linked…
Lukas
  • 1,346
  • 7
  • 24
  • 49
0
votes
0 answers

iPad persistent identifier like serial number without use of I/O Kit

For now we use I/O Kit for getting device serial number, as it won't change after resetting device etc. Serial number is used for identifying iPad on server side. Use of I/O Kit blocks Simulator though. If we wanted to add UI tests in simulator, we…
t2n
  • 48
  • 5
0
votes
1 answer

kIOHIDOptionsTypeSeizeDevice causes device to become unresponsive

I'm trying to write a simple command line program which sends keystrokes on a given keyboard to a UDP server. I'm programming on OSX using the IOKit framework and its IOHIDManager class. For the purpose of my program, I'd like to use the…
GaretJax
  • 7,462
  • 1
  • 38
  • 47
0
votes
2 answers

Cocoa get disk in NSArray

hi I'm using DiskArbitration.framework to get list of disks +(NSArray*)arrayOfDisks { DASessionRef session = DASessionCreate(kCFAllocatorDefault); if (session) { DARegisterDiskAppearedCallback(session, NULL, driveGo, NULL); …
user840250
  • 727
  • 1
  • 8
  • 20
0
votes
2 answers

Call an IOUSBDeviceInterface function on an obj-c object instead of a C structure

Let's say I want to close an USB device. Here is a C structure representing the USB device: struct __USBDevice { uint16_t idProduct; io_service_t usbService; IOUSBDeviceInterface **deviceHandle; IOUSBInterfaceInterface **interfaceHandle; Boolean…
b1onic
  • 239
  • 2
  • 14
1 2 3
33
34