| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
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.
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().
| References: | |
| >Re: PCIATA driver matching (From: Eric Brown <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.