Re: IOMedia filter
Re: IOMedia filter
- Subject: Re: IOMedia filter
- From: Michael Smith <email@hidden>
- Date: Fri, 8 Jun 2007 19:35:37 -0700
On Jun 8, 2007, at 3:33 PM, Eric Long wrote:
I'm looking at writing an IOMedia filter. This is pretty new to
me. I have
a couple of questions I hope are not too ambitious.
Before attaching my childMedia object to the driver in my start()
method, I
may need to talk to a userland agent.
- Can I do that from within the start method? Will I have time-out
issues?
You should not do it there. Publish a per-instance UserClient and
leave it at that.
The userland agent should register interest in the appearance of
instances of your Userclient and drive the actual manifestation of
your childMedia object.
I'd like to communicate information to identify the volume being
mounted to
my agent, like the volume's UUID, display name, and such.
- Can I get this information at this point in the kernel?
Not necessarily.
I saw a kIOMediaUUIDKey, but when I try to get that property, I get
back
NULL. Maybe its not available yet in start()? I don't see a key
for the
display name of the volume/partition.
The display name is not typically available for raw media; it's often
not known until the volume is presented to a filesystem.
= Mike
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden