Re: Question about NETDEV_REGISTER and NETDEV_UNREGISTER events

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

 



Hi,
Sorry, I pushed the button of send wrongly.
I noticed that there is a code where there are handlers for
NETDEV_REGISTER/NETDEV_UNREGISTER:

for example:fib_rules_event(), in
http://lxr.free-electrons.com/source/net/core/fib_rules.c#L707

for what is this handler ?
from what I understand, it is **only** for the case of
rmmod/insmod of the net driver, since this is the only case that
NETDEV_REGISTER/NETDEV_UNREGISTER are called.

On the other hand, I am not sure that I understand why this handler
does not also handle NETDEV_UP/NETDEV_DOWN in the **same** way,
(attach_rules()/detach_rules())

Any ideas?

regards,
Kevin





On Wed, Jul 3, 2013 at 4:26 PM,  <Valdis.Kletnieks@xxxxxx> wrote:
> On Wed, 03 Jul 2013 16:15:02 +0300, Kevin Wilson said:
>> Hello,
>> I am having a machine with two ethernet devices.
>> Is there a way to generate NETDEV_REGISTER or NETDEV_UNREGISTER
>> events, besides rmmod/insmod of
>> the device driver ?
>
> What use case do you have for generating those at other times? What are
> you trying to accomplish?
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies@xxxxxxxxxxxxxxxxx
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies




[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