This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: dynamic creation of ethernet instances ?
On Wed, 2003-02-19 at 19:53, Philippe Moutarlier wrote:
> Good point ..
>
> I was reading the docs on how to create a driver. But they apply only
> to physical drivers.
>
> What should be done in order to create and hook a virtual driver to the stack
> ?
>
> Would I just need to create an instance of struct eth_drv_sc, fill it in with
> the right callbacks and call if_attach ?
>
You could look at the loopback interface - it works like this.
That's probably a good place to start.
--
.--------------------------------------------------------.
| Mind: Embedded Linux and eCos Development |
|--------------------------------------------------------|
| Gary Thomas email: gary dot thomas at mind dot be |
| Mind ( http://mind.be ) tel: +1 (970) 229-1963 |
| gpg: http://www.chez-thomas.org/gary/gpg_key.asc |
'--------------------------------------------------------'
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss