Re: Data Link driver porting guide for Mac OS X 10.4?
Re: Data Link driver porting guide for Mac OS X 10.4?
- Subject: Re: Data Link driver porting guide for Mac OS X 10.4?
- From: Andrew Gallatin <email@hidden>
- Date: Mon, 20 Dec 2004 16:02:17 -0500 (EST)
Jamie Wood writes:
> Hi,
>
> Please excuse me if the answer to this question is obvious.
>
> I have a network device that operates at the Data Link layer. It works fine
> on 10.2 and 10.3, but when I try to load it using the developer preview of
> 10.4, I get a bunch of undefined symbols. Really basic mbuf functions like
> 'm_get' and 'm_free' are reported as undefined.
>
> I looked at the 'nm' output of the 10.4 mach_kernel, and I see functions
> like "mbuf_get" and "mbuf_free", so I have a feeling that I just need to do
> some name changes.
>
> Is any documentation out that there that can help me port my driver to 10.4?
You're bumping up against the kpi. From the header files, it looks
like most of the mbuf related functions have been wrapped in mbuf_*
wrapper functions. Eg, m_adj() becomes mbuf_adj(). Look at mbuf.h on a
10.4 system, and look at the file it includes (mbuf_kpi.h or something
(my development box is not on right now). I assume they did this
so they could change the size of struct mbuf without breaking drivers.
You might be able to declare the exact right dependancy in your
Info.plist and get compat versions. I'm not sure what that is.
If this kpi stuff is actually documented someplace besides the
headers, I'd love to know about it.
Drew
_______________________________________________
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