Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

register_netdev(9) [suse man page]

REGISTER_NETDEV(9)					      Network device support						REGISTER_NETDEV(9)

NAME
register_netdev - register a network device SYNOPSIS
int register_netdev(struct net_device * dev); ARGUMENTS
dev device to register DESCRIPTION
Take a completed network device structure and add it to the kernel interfaces. A NETDEV_REGISTER message is sent to the netdev notifier chain. 0 is returned on success. A negative errno code is returned on a failure to set up the device, or if the name is a duplicate. This is a wrapper around register_netdevice that takes the rtnl semaphore and expands the device name if you passed a format string to alloc_netdev. COPYRIGHT
Kernel Hackers Manual 2.6. July 2010 REGISTER_NETDEV(9)

Check Out this Related Man Page

tapset::networking(3stap)												 tapset::networking(3stap)

NAME
tapset::networking - systemtap networking tapset DESCRIPTION
This family of probe points is used to probe the activities of the network device. netdev.receive Data received from network device. See probe::netdev.receive(3stap) for details. netdev.transmit Network device transmitting buffer See probe::netdev.transmit(3stap) for details. netdev.change_mtu Called when the netdev MTU is changed See probe::netdev.change_mtu(3stap) for details. netdev.open Called when the device is opened See probe::netdev.open(3stap) for details. netdev.close Called when the device is closed See probe::netdev.close(3stap) for details. netdev.hard_transmit Called when the devices is going to TX (hard) See probe::netdev.hard_transmit(3stap) for details. netdev.rx Called when the device is going to receive a packet See probe::netdev.rx(3stap) for details. netdev.change_rx_flag Called when the device RX flag will be changed See probe::netdev.change_rx_flag(3stap) for details. netdev.set_promiscuity Called when the device enters/leaves promiscuity See probe::netdev.set_promiscuity(3stap) for details. netdev.ioctl Called when the device suffers an IOCTL See probe::netdev.ioctl(3stap) for details. netdev.register Called when the device is registered See probe::netdev.register(3stap) for details. netdev.unregister Called when the device is being unregistered See probe::netdev.unregister(3stap) for details. netdev.get_stats Called when someone asks the device statistics See probe::netdev.get_stats(3stap) for details. netdev.change_mac Called when the netdev_name has the MAC changed See probe::netdev.change_mac(3stap) for details. SEE ALSO
probe::netdev.receive(3stap), probe::netdev.transmit(3stap), probe::netdev.change_mtu(3stap), probe::netdev.open(3stap), probe::netdev.close(3stap), probe::netdev.hard_transmit(3stap), probe::netdev.rx(3stap), probe::netdev.change_rx_flag(3stap), probe::netdev.set_promiscuity(3stap), probe::netdev.ioctl(3stap), probe::netdev.register(3stap), probe::netdev.unregister(3stap), probe::netdev.get_stats(3stap), probe::netdev.change_mac(3stap), stap(1), stapprobes(3stap) IBM
--- tapset::networking(3stap)
Man Page

6 More Discussions You Might Find Interesting

1. Programming

Compiling virtual network adapter driver problem (net_device struct)

Hi, I found on linuxgazette.net/93/bhaskaran.html page very useful sample of virtual driver (not connected to real hardware). I try to compile it with no effect. So: I got fresh Ubuntu 9.10 (kernel 2.6.31-14) My source is saved in networkAdapter.c file in /usr/src/myModules directory. I... (21 Replies)
Discussion started by: Chrisdot
21 Replies

2. UNIX for Advanced & Expert Users

Can KGDB debug a device driver?

Hi, all: I am using the KGDB to debug my own network driver on linux. But I suspect if my KGDB work nomally. When I set a breakpoint at "do_one_initcall" function, the kernel function that will call my driver module, and continue to reach there, the "step" command of GDB cannot enter into my... (3 Replies)
Discussion started by: liklstar
3 Replies

3. UNIX for Advanced & Expert Users

Why cannot only the "rtl8139_rx" function be setted breakpoint on whereas the others can?

Dear all: (gdb) add-symbol-file /home/likunlun/rtl8139_driver.ko 0xf80e5000 -s .bss 0xf80e72d4 -s .data 0xf80e70e0 add symbol table from file "/home/likunlun/rtl8139_driver.ko" at .text_addr = 0xf80e5000 .bss_addr = 0xf80e72d4 .data_addr = 0xf80e70e0 (y or n) y Reading symbols... (6 Replies)
Discussion started by: liklstar
6 Replies

4. Programming

The simplest network driver

Hi, I am trying to write the simplest network driver that would send whatever through cable. My configuration is: Linux machine with some Intel network adapter Another machine with WireShark I connected Intel network adapter to second machine and want anything to pop up at wireshark. ... (12 Replies)
Discussion started by: Chrisdot
12 Replies

5. Linux

TuxOnIce stalls 3 times before resuming

I am having trouble resuming from hibernation using TuxOnIce method. The thing works, but in a very strange manner. Here's how it looks: 1. Computer boots and finds resume image and starts resume. It reads image from disk (takes ~10 seconds) Reading kernel & process data... Atomic restore.... (8 Replies)
Discussion started by: lockheed
8 Replies

6. IP Networking

Network interface layer in Linux kernel

Dear all, lets say a linux based computer(debian) with ethernet,wifi, usb modem connected to the, linux kernel version is 3.3 Question: for each network device the network driver builds its own net_device struct and register itself with the network interface layer of the kernel. ... (1 Reply)
Discussion started by: nick_kd
1 Replies