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
34
votes
8 answers

Private unique device identifier in iOS

We're working on a project with my colleagues which involves using a lot of private and non official code. This is not intended for AppStore use. The first and only requirement we have is to not use jailbreak. First of all, UDID or OpenUDID or any…
Sergey Grischyov
  • 11,995
  • 20
  • 81
  • 120
30
votes
5 answers

IOKit Not found

So everything was fine, and then I decided to start developing on XCode 5 DP3 and iOS7 Prior to upgrading, my project compiled and ran fine on my iPhone 3GS (I made a little soft phone application); it didn't run on my iPhone 5, however; I was very…
Nolan Anderson
  • 576
  • 1
  • 6
  • 15
28
votes
3 answers

What is com.apple.Dont_Steal_Mac_OS_X

com.apple.Dont_Steal_Mac_OS_X is a IOResources provider... Class Inheritance: Dont_Steal_Mac_OS_X : IOService : IORegistryEntry : OSObject how does it work? what does it do?
kent
  • 6,286
  • 4
  • 27
  • 32
22
votes
3 answers

Convert CFString to NSString - Swift

I'm trying to write a program that will scan for available serial ports and present them in a popup menu. Why can I not take the CFString straight from the IORegistryEntryCreateCFProperty() function and add it to the menu via string interpolation in…
user3185748
  • 2,478
  • 8
  • 27
  • 43
21
votes
3 answers

How to create a program to list all the USB devices in a Mac?

I have a limited exposure to the Mac OS X operating system and now I have started using Xcode and am studying about I/O kit. I need to create a program in Xcode under command line tool in order to list all USB devices connected in a Mac system.…
Dileep
  • 2,399
  • 4
  • 26
  • 39
21
votes
4 answers

Where can I systematically study how to write Mac OS X device drivers?

I'm looking for an exhaustive, university-level book or guide to study in order to gain the ability of writing Mac OS X device drivers. I'm totally ignorant on this OS, but I'm already skilled on Linux. Is there any Mac OS X counterpart for book…
drAlberT
  • 22,059
  • 5
  • 34
  • 40
17
votes
2 answers

gdb | view the variable argument list

I as using the bt command to view the stacktrace. The output is (gdb) bt #0 0x001ae4cd in Debugger (message=0x1 "???\a") at /SourceCache/xnu/xnu-1228.7.58/osfmk/i386/AT386/model_dep.c:705 #1 0x3bf97000 in ?? () #2 0x0012b0fa in panic (str=0x5ef…
user663896
15
votes
4 answers

CGDisplayIOServicePort is deprecated in OS X >= 10.9, how to replace?

I did small app to allow quickly change screen resolutions on multiple monitors. I want to show product name as title of the monitor, and it's very simple to find using this code: NSDictionary *deviceInfo = (__bridge NSDictionary…
juniperi
  • 3,723
  • 1
  • 23
  • 30
15
votes
2 answers

Sending MCCS commands on Cocoa

I am trying to write a simple Cocoa App for the Mac for one simple purpose: switching my Dell monitor input to another one (so I can switch between PC and MAC). I already found an application for Windows that does that (mControl by entechtaiwan),…
Martí Gascó
  • 385
  • 2
  • 11
14
votes
3 answers

How to get CPU temperature and fan speed on OS X?

How do I get CPU temperature and fan speeds in OS X? I understand that information is obtained from IOHWSensor in IOKit, but I'm unable to find any reliable information on how to exactly do that. I've found an article with a sample program -…
Lajcik
  • 306
  • 1
  • 2
  • 10
12
votes
6 answers

How to get monitor EDID in OS X?

I'm looking to pull the EDID information in OS X / macOS? It looks like it's stored in the IORegistry. Is there a way to access it with the current monomac libraries? Can I do it with standard interop or do I need to write a custom shim? It looks…
Joel Barsotti
  • 3,031
  • 7
  • 35
  • 59
12
votes
5 answers

How to resolve CGDirectDisplayID changing issues on newer multi-GPU Apple laptops in Core Foundation/IO Kit?

In Mac OS X, every display gets a unique CGDirectDisplayID number assigned to it. You can use CGGetActiveDisplayList() or [NSScreen screens] to access them, among others. Per Apple's docs: A display ID can persist across processes and system…
Dave
  • 12,408
  • 12
  • 64
  • 67
11
votes
2 answers

Detecting if Mac has a backlit keyboard

It’s quite easy to detect if Mac has an illuminated keyboard with ioreg at the command line: ioreg -c IOResources -d 3 | grep '"KeyboardBacklight" =' | sed 's/^.*= //g' But how can I programmatically get this IOKit boolean property using the latest…
Tzar
  • 5,132
  • 4
  • 23
  • 57
11
votes
3 answers

How do I lower the amount of memory IOKit reserves at process start up?

I am a developer working on a very large, memory intensive 32bit application. Running out of virtual address space (memory) is a problem for us. During my investigation of some recent issues I noticed a large chunk of memory that is reserved by…
pj4533
  • 1,701
  • 4
  • 17
  • 38
11
votes
2 answers

OSX - disabling system-wide touch gestures

I need to programmatically disable/suppress system-wide touch gestures on Mac OS. I'm referring to gestures such as the 4-finger swipe between spaces, etc. I've looked to EventTap but that doesn't appear to be an option (despite previous reports…
tarmes
  • 15,366
  • 10
  • 53
  • 87
1
2 3
33 34