Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
First Tiger question!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

First Tiger question!



Here is maybe the first legitimate Tiger question! Although the readers
of this list will be the judge of its legitimacy I'm sure :)

Short version: How do i get or create a vfs_context?

Long version:

OK, so there's this new KPI interface thing. Which is fantastic, a
supported interface to all that BSD stuff. However, the documentation in
many areas is ... very scarce. Especially the VFS part which is what I'm
interested in. In fact, not only is there no documentation, but the
structures are all completely opaque, and even the function arguments are
unnamed!

None of which would be a problem if the Darwin source to Tiger were also
released, as I could just go and figure out what's really happening. But
it isn't, so I've run out of options and am asking for help :)

>From their similarities to the old functions, I reckon I can guess what
all the arguments to the new functions are, and I'm happy to do a little
trial and error to figure them out. The only thing I would like to know is
this:

How do I get or create a vfs_context?

Pretty much all the VFS functions require one. Only one function returns
one (vfs_context_create), but that requires a parent context to be passed
in, and I'm betting I can't pass in NULL.

I'm pretty sure there'd be one buried in the proc structure somewhere, but
since it's now partially opaque too (AFAICS) I'm not going to go digging
in there. And using that one is probably a Bad Thing (tm) too.

Alternatively, if someone can reassure me that the new Darwin source will
be out RSN, then I would also be very happy. The WWDC 2004 preview source
doesn't appear to contain xnu.


Thanks in advance,

{P^/
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-drivers mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.