kernel-extension

What is /Library/StagedExtensions for and how to remove extensions

送分小仙女□ 提交于 2020-05-24 20:26:05
问题 I'm trying to uninstall Parallels completely from macOS High Sierra. I removed everything from the disk except some Parallels extensions that are stored under /Library/StagedExtensions/Parallel Desktop.app I think the location has to do with user approved extensions, but I'd like to find a way to remove/uninstall those too. If I try to delete the extensions it says operation not permitted despite the root rights. Any idea? 回答1: There is new way to clear the StageExtensions folder as following

How to write a custom USB Infrared Touch Screen driver for OS X? [duplicate]

冷暖自知 提交于 2020-01-07 00:05:36
问题 This question already has an answer here : How to write usb touchscreen driver kext in os x 10.9? (1 answer) Closed 6 years ago . System details: OS X 10.9.1 (13B42) USB Infrared Touch Screen details: Low Speed device @ 3 (0x14400000): ............................................. Composite device from unknown vendor Port Information: 0x101a Not Captive Attached to Root Hub External Device Connected Enabled Connected to External Port Number Of Endpoints (includes EP0): Total Endpoints for

Race: callbacks and removing callbacks during unload of kext in OSX

一曲冷凌霜 提交于 2020-01-02 23:14:09
问题 There doesn't appear to be synchronization between establishing/removing callbacks (e.g. kauth_unlisten_scope) and the callbacks themselves (in the xnu codebase, yes, I know, it's dated). This puts the burden of tracking/draining callbacks and synchronizing with calls on the extension itself. But this is problematic as well in that there is a window in noting that a thread has exited the callback AND actually returning out of the extension code. Is there any pattern that gives a correct

How to write usb touchscreen driver kext in os x 10.9?

可紊 提交于 2019-12-30 11:48:25
问题 I want to write a usb touchscreen kext for usb touch screen . I have read the Kernel Extension Programming Topics and the I/O Kit Fundamentals etc, My question is, 1 . how to get the input report messages from touch screen ? 2 . how to post the coordinate info to system ? I have no idea, anybody help? 回答1: It depends on the hardware; moreover, this question is quite broad - you'll need to be more specific in your question to get more specific answers. I'll try to provide a broad overview: A

Reading and writing to USB (HID) interrupt endpoints on Mac

你。 提交于 2019-12-28 09:19:19
问题 I am attempting to communicate with a rather specific USB device and developing both Windows and Mac code to do so. The device is a USB device with a HID interface (class 3) with two endpoints, an interrupt input and an interrupt output. The nature of the device is such that data is sent out from the device on the input endpoint only when data is requested from the host: the host sends it data which the device responds to on its input interrupt endpoint. Getting data to the device (a write)

errors when I excute AIX kernel extension program

谁说胖子不能爱 提交于 2019-12-25 04:02:38
问题 Im newbie at AIX. I got many errors when I compiled kernel extension. After then, finally I compiled and Linked. But When I excuted the binary, I got this error. bash# ./sysconfig_1 load ./question.exp Could not load program ./sysconfig_1: The program does not have an entry point or the o_snentry field in the auxiliary haeder is invalid. Examine file headers with the 'dump -ohv' command Could anyone help me? //sysconfig_1.c #include <sys/types.h> #include <sys/sysconfig.h> #include <sys

Read plist from kext

与世无争的帅哥 提交于 2019-12-24 16:46:44
问题 I'd like save a kext setting between OS restarts. As I need the settings after kext been loaded immediately, I can not wait for managing daemon start up. Is it a way for reading/writing kext plist file from kext or some other ways to do that? 回答1: Basically, no - you're supposed to store settings in userspace and use a launchd service to set them in the kext. Until your kext receives the settings, it should just use some sane defaults. One way to truly include settings on kext startup is to

IOService leaking for NO reason

送分小仙女□ 提交于 2019-12-24 07:38:10
问题 Okay, I am completely stumped and frustrated. I was working on an I/O Kit RAM Disk implementation and discovered that it wasn't unloading when my friend loaded it with kextload and then tried to unload it with kextunload . The reason for this was that none of the OSObject s which the kext allocated were being freed. However, on both my computer (running Mac OS 10.8.5) and a VM (running Mac OS 10.7) everything worked as expected. Eventually, I narrowed the problem down so much that I created a

Mount approval callback on mac OS X

痞子三分冷 提交于 2019-12-24 04:21:57
问题 I want to Authorize USB/CD on Mac OS X. Now i am using DiskArbitration framework to get MountApprovalCallback in user mode. But the problem with this callback is that there is no assurance of it. And if i'll get callback i am using CFUserNotificationReceiveResponse() to accept password from user. But when prompt is shown at the same time user can open DiskUtility and can mount a device So, Is there any other way to get mount approval callback or to authorize a device? How i can handle it in

Mount approval callback on mac OS X

混江龙づ霸主 提交于 2019-12-24 04:21:37
问题 I want to Authorize USB/CD on Mac OS X. Now i am using DiskArbitration framework to get MountApprovalCallback in user mode. But the problem with this callback is that there is no assurance of it. And if i'll get callback i am using CFUserNotificationReceiveResponse() to accept password from user. But when prompt is shown at the same time user can open DiskUtility and can mount a device So, Is there any other way to get mount approval callback or to authorize a device? How i can handle it in