Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: matching for a shim driver



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

References: 
 >matching for a shim driver (From: Andrew Gallatin <email@hidden>)
 >Re: matching for a shim driver (From: Godfrey van der Linden <email@hidden>)
 >Re: matching for a shim driver (From: Andrew Gallatin <email@hidden>)
 >Re: matching for a shim driver (From: Godfrey van der Linden <email@hidden>)
 >Re: matching for a shim driver (From: John Dalgliesh <email@hidden>)
 >Re: matching for a shim driver (From: Andrew Gallatin <email@hidden>)
 >Re: matching for a shim driver (From: John Dalgliesh <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.