Re: Accessing ifnet
Re: Accessing ifnet
- Subject: Re: Accessing ifnet
- From: Rick Macklem <email@hidden>
- Date: Fri, 6 Jun 2008 12:39:22 -0400 (EDT)
On Fri, 6 Jun 2008, Josh Graessley wrote:
On Jun 6, 2008, at 10:02 AM, Rick Macklem wrote:
[stuff snipped]
As OSBundleLibraries I use com.apple.kernel.
I do know that I'm using unsupported API... but is there a way
to use the mutex routines?
[more stuff snipped]
You can also bypass the safety on your food processor and get it to run while
the lid is off and reach your hand in but I wouldn't recommend it.
1) In order to get your kext to link, you'll have to declare a dependency on
the exact version of the kernel, which means your kext will only work with
one specific version of Mac OS X. Every software update will break your
product.
Yep, but he noted that he was linking against com.apple.kernel and
that he knew he was using unsupported APIs. (The local laundromat has
front loading washers with a safety device on them so people won't open
the door while it's running. I suppose there is someone out there who
would open it and dump water all over the floor, but it's a real pain
when it decides not to release when your laundry is done and you can't get
the dang thing to open;-)
2) There's a better way. There are a whole set of KPIs to do whatever you are
likely to be trying to do. They will take and drop any appropriate locks for
you.
Agreed, of course. If he can do what he wants with a KPI, then that would
be a better solution. (I had assumed, quite possibly incorrectly, that he
had already decided that the KPIs weren't sufficient for what he was doing.)
rick
_______________________________________________
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