• 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: Notify Application when all system items have been loaded
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Notify Application when all system items have been loaded


  • Subject: Re: Notify Application when all system items have been loaded
  • From: Peter Lovell <email@hidden>
  • Date: Fri, 23 Dec 2005 16:58:18 -0500


On Dec 23, 2005, at 3:29 PM, Carl Smith wrote:

I was wondering if anyone knows of some way that my app can tell when all the OS items have been loaded and started at startup.

My problem is that I have a NKE and an application. My NKE attaches itself to all the interfaces when it is loaded, my application loads my NKE, and my application is started automatically at startup. What I have been seeing is that my application loads my NKE before all the interfaces are up. In other words my NKE will attach itself to the built in Ethernet but not the Airport card. Now if I shut down my app, unload my NKE and start everything again, manually without a system restart then my NKE will see all the interfaces, including the Airport.

So what I would like is some way that my app knows not to load the NKE until the OS is finished with all it's overhead. Is there some API call or notification I can use in my application to check the status of the OS and it's start up routine?

Thanks
Carl

Hi Carl,
I think there are a couple of issues you have to work with before going too far down this path. There are solutions, but I suspect that your current path has some bumps in it.


The main thing to consider is that the list of interfaces is dynamic. So, although you may wait until the "startup" stuff is complete, that might not be satisfactory for what you're trying to do. For example, the system might start without Airport because it's turned off by the user. Does it matter to you if it's enabled after an hour or so? What happens if Airport is there and then it's turned off? And even Ethernet "en0" might be configured off.

I suspect that you really don't want to wait for "startup complete" but instead need to respond to interface transitions as and when they occur. The system configuration framework will be your friend in that endeavour.

Regards.....Peter
_______________________________________________
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


References: 
 >Notify Application when all system items have been loaded (From: "Carl Smith" <email@hidden>)

  • Prev by Date: Notify Application when all system items have been loaded
  • Next by Date: Re: Threading and Synchronization in Mass storage driver
  • Previous by thread: Notify Application when all system items have been loaded
  • Next by thread: OSMalloc Fails (returns 0)
  • Index(es):
    • Date
    • Thread