John Dalgliesh writes:
> this but from memory that's how it works. Give it a go - it shouldn't take
> long to try out :)
>
It seems like it sorta works. At least I seem to get one "match" per
instance of the main driver. But now I'm stumped because when I
attempt to load the tiny, toy ethernet driver I see:
Couldn't alloc class "mx_ether"Couldn't alloc class "mx_ether"
I have no idea where that's coming from, but at least there is
one emitted for each of the 2 instances of the main driver ;)
If the "Couldn't alloc class" messages sound familiar to anybody,
please let me know.. The toy driver is nothing more than
the following 20 lines. Maybe its because its such a toy..
Drew
#include <IOKit/network/IOEthernetController.h>
class mx_ether : public IOEthernetController
{
OSDeclareDefaultStructors(mx_ether)
public:
virtual bool start(IOService *provider);
virtual void stop(IOService *provider);
virtual void free();
};
bool
mx_ether::start(IOService *provider)
{
IOLog("starting mx_ether\n");
return true;
}
void
mx_ether::stop(IOService *provider)
{
IOLog("stopping mx_ether\n");
IOService::stop(provider);
}
void
mx_ether::free()
{
IOLog("freeing mx_ether\n");
}
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-drivers mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-drivers/email@hidden
This email sent to email@hidden