Mac Developer Help

semaja2

macrumors 6502a
Original poster
Dec 12, 2005
575
0
Adelaide
Hey guys,

Does anyone here know anything about coding kernel extensions, or know of any places i could get help with kernel extensions.

I noticed this site http://developer.apple.com/technicalsupport/ but i do not have a ADC membership so i dont know if i can use it.

My problem is at the moment that it appears the MacBooks and MacBookPros no longer stay awake with Insomnia, this sounds like its a Intel issue and only happened after the 10.4.8 update.

Any help would be appreciated.
 

WildCowboy

Administrator/Editor
Staff member
Jan 20, 2005
16,783
1,065
I can't help you with your issue, but you can sign up for a free ADC Online account and then pay $195 for one tech support incident. I bet you could get donations from some of your users to help pay for that.
 

mufflon

macrumors 6502
Sep 15, 2006
264
2
That's a lot of money, surely there's ppl who knows their way around kernels even here?

You could otherwise check up on
* the open source project darwin, ppl should be able to help you there
* email insomnia's creator and file a bug
* google (which I'm not certain will ehlp, but hey, worth a shot)


edit: googled for "kernel extension" found following apple reference: linkety clickety
 

mufflon

macrumors 6502
Sep 15, 2006
264
2
I'm not certain you should do this unless you're 100% certain of the code and how it works (if it's not a production comp then disregard this, but backup before you do anything overly advanced - you never know!), but compare with the link I posted, which has a tutorial for overall structure.
 

semaja2

macrumors 6502a
Original poster
Dec 12, 2005
575
0
Adelaide
Well ive been dealing with Insomnia for a while now and did modify the code awhile back, how ever seems i lost project files and i cant remember how i made it universal all i know is it took ages to remember what i missed
 

savar

macrumors 68000
Jun 6, 2003
1,954
0
District of Columbia
semaja2 said:
Well im looking for a solution and seeing if some modified code will work but i cant seem to make it compile as a universal KEXT, can anyone modify the project file and send it to me?

http://forum.insanelymac.com/index.php?act=Attach&type=post&id=3872
My mac is out of commission, so I can't really look at your code. I tried writing a KEXT one time and I can tell you at least one thing: you need to get a lock (or "funnel") before doing certain kinds of operations, and I never saw that mentioned in the Apple documentation. Failing to do so causes kernel panics.

There are some KEXTs out there with source code available, but I can't think of one off the top of my head. Check those out. The documentation at Apple sometimes lags behind what's actually been released, and KEXTs have changed with every .1 release since 10.0.
 

whooleytoo

macrumors 604
Aug 2, 2002
6,559
628
Cork, Ireland.
The Usenet groups can be good for more technical questions (comp.sys.mac.programmer.*); but I'd reckon your best option would be the Apple lists - perhaps Darwin Kernel might be the best to ask KEXT related questions?