Re: pcmcia discovery
Re: pcmcia discovery
- Subject: Re: pcmcia discovery
- From: Josh Graessley <email@hidden>
- Date: Wed, 24 Aug 2005 10:55:38 -0700
Kernel events won't notify you about pcmcia card insertion/removal. It will however notify you of interfaces coming and going. The best way is to open a kernel event socket from within the kernel and listen for the events you're interested in.
If you get the sources to bsd/net/ndrv.c from 10.2 or 10.3, it has some code that can be used as an example. For 10.4, you'll need to use the KPIs. The ndrv.c from 10.4 has been updated to use the KPIs and is a good example.
-josh
On Aug 23, 2005, at 5:19 PM, Christopher Vitale wrote:
Hello, I'm writing an nke for jaguar/panther that attaches a protocol filter to all available nics when loaded. I'm having trouble finding pcmcia nic information after my kext loads. kev_post_msg stuff looked promising, but I couldn't find what I needed. How do you tell when someone has inserted or removed one of these cards from a kext? Thanks, vitale |
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