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: Virtual Device



Rene,

excerpt from "Hello I/O Kit: Creating a Device Driver With Xcode"
talking about virtual device
============================================================
Important:  IOMatchCategory is a special property list element that
allows multiple drivers to match on a single nub. The presence of
IOMatchCategory allows HelloIOKit to match on IOResources (a special
nub at the root of the I/O Registry that provides system-wide
resources) without preventing other drivers from matching on it. When
you write a functional driver following the guidelines in this
tutorial, you should not include the IOMatchCategory element in your
driver's property list at all unless there is a valid reason for your
driver to match on the same device nub at the same time as another
driver (for example, a serial port with multiple devices attached to
it).

The vast majority of drivers should not match on IOResources. A rare
exception to this is a driver for a virtual device, because a virtual
device does not produce its own nub in the I/O Registry. If you're
developing such a driver, you must include the IOMatchCategory
property to make sure your driver doesn't claim IOResources and
prevent other drivers from matching on it. To ensure your driver's
IOMatchCategory value is unique, use your driver's class name, in
reverse-DNS notation and with underbars instead of dots (for example,
com_MyTutorial_driver_HelloIOKit).
============================================================

also the below posting talks the same....
(Faking and IO Device)
http://lists.apple.com/archives/darwin-drivers/2005/Aug/msg00104.html


a.d _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-drivers mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-drivers/email@hidden

This email sent to email@hidden
References: 
 >Virtual Device (From: Rene Trost <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.