Adding a new driver in /drivers/net/Space.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I am writing a pseudo-network device driver which does not need to do any 
probing of hardware.

I looked at Space.c and came across the following for the Ethertap driver:
---------------------------
#ifdef CONFIG_ETHERTAP
    static struct device tap0_dev = { "tap0", 0, 0, 0, 0, NETLINK_TAPBASE, 
0, 0, 0, 0, NEXT_DEV, ethertap_probe, };
#   undef NEXT_DEV
#   define NEXT_DEV	(&tap0_dev)
#endif
----------------------------

Does this mean that merely compiling-in the Ethertap driver will 
COMPULSORILY create 'tap0'?

What if I just wanted to initialize some variables for my driver which 
would be later loaded as modules. What would i put into Space.c in that 
case?

Regards,
Amit

-- 
The statement below is true.
The statement above is false.
^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^
                  Amit Kucheria
          EECS Grad. Research Assistant
         University of Kansas @ Lawrence
   (R)+1-(785)-830 8521 ||| (O)+1-(785)-864 7774
____________________________________________________

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux