Jalaja <jganapat@storage.com> wrote:
- How can i register my interface name (say etho0, eth1) with the OS.
In linux, it is done using reg_netdev (“eth0”).
So, if i do a ifconfig x.x.x.x eth0 up and do a ping on x.x.x.x, it would
call my drivers’ Tx Fxn.How can i do the same in QNX?
You only get to register the the first part under QNX. Traditionally
this would be en for an ethernet driver. Assuming you only had a single
driver loaded in io-net you would get en0 assigned to your device. Your
driver will know which number it will be assinged based on the lan value
returned from the register.
- If i do ifconfig, In linux, my drivers open entry point will get invoked.
But Here in QNX, we don’t have the open entry point. Should I MOVE all the
Open Entry point code in the init Fxn itself?
The ifconfig talks to the stack - it really isn’t a driver issue.
So, Are there only three major parts like Initialization, Tx and Rx in QNX
(Apart from shutdown)??
The major parts are broken out into the different files (if you look
at the source to the pcnet). Tx, Rx, events (interrupts/timers),
shutdown, devctl()'s, init, shutdown…you get the picture.
chris
\
cdm@qnx.com > “The faster I go, the behinder I get.”
Chris McKillop – Lewis Carroll –
Software Engineer, QSSL
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<