• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
missing mbuf_len at load time
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

missing mbuf_len at load time


  • Subject: missing mbuf_len at load time
  • From: Chris Neustrup <email@hidden>
  • Date: Fri, 22 Feb 2008 14:46:39 -0800

I'm building an ethernet controller device driver that needs to implement outputPacket(), overloaded from IONetworkController.  In order to manipulate the packet pointed to by mbuf_t *, I've invoked mbuf_len to check the length of the data.  xcode can find the declaration in kpi_mbuf.h, but the linker can't find it at kext load time.  I'm running 10.4.10, which has worked fine until now.  By the message, the linker is expecting c++ linkage: __Z8mbuf_lenP6__mbuf

Thanks in advance, Chris

snippet...

UInt32
xgg::outputPacket( mbuf_t packet, void * param )
{
size_t mlen = mbuf_len(packet);
IOLog("xgg::outputPacket mbuf data len %d\n", mlen);

return kIOReturnSuccess;
}

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

This email sent to email@hidden

  • Follow-Ups:
    • Re: missing mbuf_len at load time
      • From: Rick Altherr <email@hidden>
  • Prev by Date: Problems updating a dependent library
  • Next by Date: Re: missing mbuf_len at load time
  • Previous by thread: Re: Problems updating a dependent library
  • Next by thread: Re: missing mbuf_len at load time
  • Index(es):
    • Date
    • Thread