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: IOStorage filters in 10.6



Thanks.  That explains everything I need to know.
 
 
Tony
 

CC: email@hidden
From: email@hidden
Subject: Re: IOStorage filters in 10.6
Date: Thu, 5 Nov 2009 18:36:48 -0800
To: email@hidden

Hey Tony,

10.5 supports both the old interfaces and the new interfaces.  You need only subclass one set.  We are able to route any invocation of the old interfaces over to your new implementation transparently.

You have to save a copy of the IOStorageAttributes and IOStorageCompletion if you wish to keep the I/O.  This was true of IOStorageCompletion in the old interfaces as well, but it was a bit more obvious without reading the documentation given that IOStorageCompletion was passed to you by value.

We do not have sample code to illustrate the new interfaces yet.  The new interfaces are documented in HeaderDoc nonetheless.

Dan

Le 2009-11-05 à 11:18, Tony Wong a écrit :

I just want to make sure I understand this.
 
Are you saying that 10.5 supports 2 read/write interface?
 
The legacy one
read(IOService *, Uint64, IOMemoryDescriptor *, IOSTorageCompletion)
 
and the new one
read(...., IOStorageAttributes *,  IOStorageCompletion *)
 
And the kernel will use the interface that is defined in the driver?
 
Now back to one of my original questions:
 
If the customer has already installed the driver using the legacy interface
and then he upgrades to 10.6, will the driver fails to load because the
required interface is not defined or it will cause panic?
 
I also have a question on the last 2 pointer parameters.  It seems that
I have to make a copy of them if my driver does not dispatch the
request to the lower level module in the some context.  Is that correct?
I just used the pointer initially and I got panic as soon as there is IO.
 
I did look around for sample code that uses IOStorage class but they
are too old!  Where can I find sample code for snow leopard or there is none yet?
 
I think I understand the 32 bit v.s. 64 bit. issue.  I am more confused about
the new interface and the backward compatibility.
 
Thanks very much. 
 
 
Tony

CC: email@hidden
From: email@hidden
Subject: Re: IOStorage filters in 10.6
Date: Thu, 5 Nov 2009 09:51:06 -0800
To: email@hidden

Hey Tony,

You can switch to the new interfaces safely.  We support it on both 10.5 and 10.6.  You need not special case 32-bit from 64-bit.

Dan

Le 2009-11-05 à 01:59, Tony Wong a écrit :

No.  Our product does not support 10.6 yet but we are in the process
of porting the driver to 64 bit 10.6.   We actually thought it would work in
32 bit snow leopard but it does not seem possible.
 
Our driver does not use any 64 bit data types and we thought a simple
recompilation would suffice but NO, thanks to the new interface.
 
We have not tried the upgrade from 10.5 to 10.6 with the old 10.5 drivers
because our primary interest is 64 bit 10.6 and we know the 32 bit driver will
not work.  I would like to get quick answer from you folks so we can
save some time.
 
Thanks.
 
Tony Wong

 

Subject: Re: IOStorage filters in 10.6
From: email@hidden
Date: Thu, 5 Nov 2009 01:16:56 -0800
CC: email@hidden
To: email@hidden

Tony,

Have you tried it yet?

 = Mike

On Nov 5, 2009, at 12:46 AM, Tony Wong wrote:

I just found out that the read/write interface for the IOStorage class is
not compatible in 10.6.  There is a new attr argument and the completion
object is not passed as a pointer.
 
It is trivial to port it BUT
 
if the customer upgrades from 10.5 to 10.6 and they have some IO filter
drivers, are they going to have major problem?? 
 
How would they know which driver they have to upgrade?
 
Please share your ideas.
 
 
Tony Wong


Bing brings you maps, menus, and reviews organized in one place. Try it now. _______________________________________________
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

--
Excellence in any department can be attained only by the labor of a lifetime; it is not to be purchased at a lesser price -- Samuel Johnson









Hotmail: Trusted email with powerful SPAM protection. Sign up now.
_______________________________________________
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



Bing brings you maps, menus, and reviews organized in one place. Try it now.



Windows 7: Unclutter your desktop. Learn more.
 _______________________________________________
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: 
 >IOStorage filters in 10.6 (From: Tony Wong <email@hidden>)
 >RE: IOStorage filters in 10.6 (From: Tony Wong <email@hidden>)
 >RE: IOStorage filters in 10.6 (From: Tony Wong <email@hidden>)
 >Re: IOStorage filters in 10.6 (From: Daniel Markarian <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.