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@hiddenFrom:
email@hiddenSubject: Re: IOStorage filters in 10.6
Date: Thu, 5 Nov 2009 09:51:06 -0800
To:
email@hiddenHey 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@hiddenDate: Thu, 5 Nov 2009 01:16:56 -0800
CC:
email@hiddenTo:
email@hiddenTony,
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@hiddenThis 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.