Shaper driver in drivers/net/shaper.c

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

 



I am trying to understand the shaper driver written by Alan Cox.

In the following code, where is the creation of multiple shaper devices 
handled?
-------------------------
__initfunc(int shaper_probe(struct device *dev))
{
        dev->priv = shaper_alloc(dev);
        if(dev->priv==NULL)
                return -ENOMEM;
                
        dev->open               = shaper_open;
---------------------------

In the the code, i see that 4 shaper devices have been 'statically' 
defined. Why? Can't i create more shaper devices?

Regards,
Amit

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux