Developer Help

Discussion in 'Mac Programming' started by semaja2, Oct 2, 2006.

  1. semaja2 macrumors 6502a

    Joined:
    Dec 12, 2005
    Location:
    Adelaide
    #1
    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.
     
  2. WildCowboy Administrator/Editor

    WildCowboy

    Staff Member

    Joined:
    Jan 20, 2005
    #2
    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.
     
  3. mufflon macrumors 6502

    Joined:
    Sep 15, 2006
    #3
    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
     
  4. semaja2 thread starter macrumors 6502a

    Joined:
    Dec 12, 2005
    Location:
    Adelaide
    #4
  5. mufflon macrumors 6502

    Joined:
    Sep 15, 2006
    #5
    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.
     
  6. semaja2 thread starter macrumors 6502a

    Joined:
    Dec 12, 2005
    Location:
    Adelaide
    #6
    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
     
  7. savar macrumors 68000

    savar

    Joined:
    Jun 6, 2003
    Location:
    District of Columbia
    #7
    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.
     
  8. whooleytoo macrumors 603

    whooleytoo

    Joined:
    Aug 2, 2002
    Location:
    Cork, Ireland.
    #8
    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?
     

Share This Page