iokit

gdb | view the the variable argument list

て烟熏妆下的殇ゞ 提交于 2019-12-04 00:19:01
问题 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 "") at /SourceCache/xnu/xnu-1228.7.58/osfmk/kern/debug.c:274 #3 0x001a8cd4 in kernel_trap (state=0x51a67c80) at /SourceCache/xnu/xnu-1228.7.58/osfmk/i386/trap.c:680 #4 0x0019ede5 in return_from_trap () at pmap.h:176 #5 0x00132bea in __doprnt (fmt=

How to detect SSD in Mac OS X?

给你一囗甜甜゛ 提交于 2019-12-03 17:42:04
问题 Is there a reliable, quick, deterministic way (i.e. not a benchmark) to check whether the system drive Mac OS X is on is a Solid State Drive? Is there any other indicator how well disk handles parallel access? I'm trying to adjust number of threads that my program is going to use for disk-bound operations. I'm not interested in raw speed or seek time, only which type of access – serial or parallel – is faster for the drive. I don't expect users of my program to use iSCSI or RAID. SSD is my

how to get Device id, vendor id and product id of a mounted usb device in Mac OS cocoa

久未见 提交于 2019-12-03 17:17:49
I am trying to write a Cocoa program which detects iPods connected to Mac OS. I am listening to NSWorkspaceDidMountNotification and NSWorkspaceDidUnmountNotification for the USB device mount and unmount notifications. I can get the device path of the mounted device using NSString *path = [[notif userInfo] objectForKey:@"NSDevicePath"]; but I also need t know the Device Id, Vendor Id, Product Id etc to check whether the mounted device is an iPod. I think the way forward is IOKit. But I have a feeling that it for low level programming. Is there any other way to find these? Also, if it is IO kit

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

半腔热情 提交于 2019-12-03 13:33:44
问题 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 reboot, and typically remains constant as long as certain display parameters do not change. On newer mid-2010 MacBook Pro's, Apple started using auto-switching Intel/nVidia graphics. Laptops have two GPU's, a low-powered Intel, and a high-powered nVidia.

How to detect SSD in Mac OS X?

做~自己de王妃 提交于 2019-12-03 06:25:42
Is there a reliable, quick, deterministic way (i.e. not a benchmark) to check whether the system drive Mac OS X is on is a Solid State Drive? Is there any other indicator how well disk handles parallel access? I'm trying to adjust number of threads that my program is going to use for disk-bound operations. I'm not interested in raw speed or seek time, only which type of access – serial or parallel – is faster for the drive. I don't expect users of my program to use iSCSI or RAID. SSD is my focus, anything else is nice-to-have. Device Characteristics of IOAHCIBlockStorageDevice contains this

Private unique device identifier in iOS

南楼画角 提交于 2019-12-03 00:58:59
问题 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 other solutions don't work here and they're not expected to. We've done a lot of background research and tests, starting with trying to get the IMEI, ICCID, IMSI and the Serial Number programatically. None of the above methods work with iOS 7 and

Private unique device identifier in iOS

自闭症网瘾萝莉.ら 提交于 2019-12-02 14:18:20
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 other solutions don't work here and they're not expected to. We've done a lot of background research and tests, starting with trying to get the IMEI , ICCID, IMSI and the Serial Number programatically. None of the above methods work with iOS 7 and above without jailbreak. We've also spent a couple of months to play with IOKit framework using the

Will use of IOKit in my iOS app get my app rejected?

ぃ、小莉子 提交于 2019-12-02 04:12:15
问题 devs, as mentioned by Erica IOKit is a semi private framework; does anybody has any experience in using it in an app-store app? I want to use it to get IMEI and ICCID number. 回答1: If you call any non-documented Apple framework your app will be rejected. So it's very unlikely people have experience of using this framework in an app-store friendly app. This process is entirely automatic , and happens immediately after you submit the binary. It's run through a number of checks to make sure you

Linking Dylibs in Kexts?

て烟熏妆下的殇ゞ 提交于 2019-12-02 03:36:53
问题 I've written a kext for OS X that implements a USB-based framebuffer using (IOKit) libusb and jpeglib. Both of those are dylibs, and for some reason they won't link properly in XCode, and the OS won't resolve the dependencies when it attempts to load the kext. The background of this whole thing is that Samsung makes an LCD picture frame that can act as a second monitor; the only problem is that it's not DisplayLink or any other known protocol -- the Windows-only driver spits out a custom

Linking Dylibs in Kexts?

烂漫一生 提交于 2019-12-02 03:35:16
I've written a kext for OS X that implements a USB-based framebuffer using (IOKit) libusb and jpeglib. Both of those are dylibs, and for some reason they won't link properly in XCode, and the OS won't resolve the dependencies when it attempts to load the kext. The background of this whole thing is that Samsung makes an LCD picture frame that can act as a second monitor; the only problem is that it's not DisplayLink or any other known protocol -- the Windows-only driver spits out a custom header and each frame is encoded as a JPEG and sent to the device. My implementation does that for OS X,