• 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
Re: Accessing ifnet
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accessing ifnet


  • Subject: Re: Accessing ifnet
  • From: Adi Masputra <email@hidden>
  • Date: Fri, 6 Jun 2008 01:01:53 -0700


On Jun 6, 2008, at 12:29 AM, Michael Tüxen wrote:

Dear all,

in an NKE I'm using code like

	TAILQ_FOREACH(ifn, &ifnet, if_list) {
		/* Do something with ifn */
	}

and need to protect it by

	ifnet_head_lock_shared();
	TAILQ_FOREACH(ifn, &ifnet, if_list) {
		/* Do something with ifn */
	}
	ifnet_head_done();

but the kextload reports

kld(): Undefined symbols:
_ifnet_head_done
_ifnet_head_lock_shared

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?

Not really; it's not supported. What are you trying achieve in the first place?


Adi



Best regards
Michael

_______________________________________________
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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

  • Follow-Ups:
    • Re: Accessing ifnet
      • From: Michael Tüxen <email@hidden>
References: 
 >Accessing ifnet (From: Michael Tüxen <email@hidden>)

  • Prev by Date: Accessing ifnet
  • Next by Date: Re: Accessing ifnet
  • Previous by thread: Accessing ifnet
  • Next by thread: Re: Accessing ifnet
  • Index(es):
    • Date
    • Thread