Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PCIATA driver matching



On Sunday, December 22, 2002, at 01:54 PM, Eric Brown wrote:
It is the responsibility of the code that allocates the IOService instance to do everything necessary to start the driver (i.e. init(), attach(), start()). So if you depend on IOKit matching to create your driver instance, IOKit will take care of it since it allocated your class. However if you are allocating nubs yourself, it is your responsibility for calling start(). To make that easier, there's an IOService function startCandidate() that will call both attach() and start() on your nub. It will also clean up by calling detach() if start() fails.

Also, since you are creating your driver nubs, there is no need to set up matching criteria for them. That is only needed for cases like your controller class that need to be automatically created.


That worked. I'm panic()ing inside IOATAFamily now. Let's call that progress. ;)

Definitely seems like a bug. I believe that the name information comes from the registry, so it might be that getName() will fail until the service has been attached to its provider. But calling getName() should never cause a panic().

I would send you a backtrace, but for some reason (another bug?) I don't get any panic logs written to /Library/Logs. Coupled with the
inconvenience that I cannot have multiple boxes setup for debugging, it's hard to print out a symbolic backtrace.
I could, however, send you a stripped down version of the source code demonstrating the problem. Let me know.

Ernesto.
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: PCIATA driver matching (From: Eric Brown <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.