Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Public Types | Data Fields
net_device Struct Reference

#include <netdevice.h>

Public Types

enum  {
  NETREG_UNINITIALIZED =0, NETREG_REGISTERED, NETREG_UNREGISTERING, NETREG_UNREGISTERED,
  NETREG_RELEASED, NETREG_DUMMY
}
 
enum  { RTNL_LINK_INITIALIZED, RTNL_LINK_INITIALIZING }
 

Data Fields

char name [IFNAMSIZ]
 
struct hlist_node name_hlist
 
charifalias
 
unsigned long mem_end
 
unsigned long mem_start
 
unsigned long base_addr
 
unsigned int irq
 
unsigned long state
 
struct list_head dev_list
 
struct list_head napi_list
 
struct list_head unreg_list
 
netdev_features_t features
 
netdev_features_t hw_features
 
netdev_features_t wanted_features
 
netdev_features_t vlan_features
 
int ifindex
 
int iflink
 
struct net_device_stats stats
 
atomic_long_t rx_dropped
 
struct net_device_opsnetdev_ops
 
struct ethtool_opsethtool_ops
 
struct header_opsheader_ops
 
unsigned int flags
 
unsigned int priv_flags
 
unsigned short gflags
 
unsigned short padded
 
unsigned char operstate
 
unsigned char link_mode
 
unsigned char if_port
 
unsigned char dma
 
unsigned int mtu
 
unsigned short type
 
unsigned short hard_header_len
 
unsigned short needed_headroom
 
unsigned short needed_tailroom
 
unsigned char perm_addr [MAX_ADDR_LEN]
 
unsigned char addr_assign_type
 
unsigned char addr_len
 
unsigned char neigh_priv_len
 
unsigned short dev_id
 
spinlock_t addr_list_lock
 
struct netdev_hw_addr_list uc
 
struct netdev_hw_addr_list mc
 
bool uc_promisc
 
unsigned int promiscuity
 
unsigned int allmulti
 
voidatalk_ptr
 
struct in_device __rcuip_ptr
 
struct dn_dev __rcudn_ptr
 
struct inet6_dev __rcuip6_ptr
 
voidax25_ptr
 
struct wireless_devieee80211_ptr
 
unsigned long last_rx
 
struct net_devicemaster
 
unsigned chardev_addr
 
struct netdev_hw_addr_list dev_addrs
 
unsigned char broadcast [MAX_ADDR_LEN]
 
rx_handler_func_t __rcurx_handler
 
void __rcurx_handler_data
 
struct netdev_queue __rcuingress_queue
 
struct netdev_queue *_tx ____cacheline_aligned_in_smp
 
unsigned int num_tx_queues
 
unsigned int real_num_tx_queues
 
struct Qdiscqdisc
 
unsigned long tx_queue_len
 
spinlock_t tx_global_lock
 
unsigned long trans_start
 
int watchdog_timeo
 
struct timer_list watchdog_timer
 
int __percpupcpu_refcnt
 
struct list_head todo_list
 
struct hlist_node index_hlist
 
struct list_head link_watch_list
 
enum net_device:: { ... }  reg_state
 
bool dismantle
 
enum net_device:: { ... }  rtnl_link_state
 
void(* destructor )(struct net_device *dev)
 
union {
   void *   ml_priv
 
   struct pcpu_lstats __percpu *   lstats
 
   struct pcpu_tstats __percpu *   tstats
 
   struct pcpu_dstats __percpu *   dstats
 
}; 
 
struct garp_port __rcugarp_port
 
struct device dev
 
struct attribute_groupsysfs_groups [4]
 
struct rtnl_link_opsrtnl_link_ops
 
unsigned int gso_max_size
 
u16 gso_max_segs
 
u8 num_tc
 
struct netdev_tc_txq tc_to_txq [TC_MAX_QUEUE]
 
u8 prio_tc_map [TC_BITMASK+1]
 
struct phy_devicephydev
 
struct lock_class_keyqdisc_tx_busylock
 
int group
 
struct pm_qos_request pm_qos_req
 

Detailed Description

Definition at line 1013 of file netdevice.h.

Member Enumeration Documentation

anonymous enum
Enumerator:
NETREG_UNINITIALIZED 
NETREG_REGISTERED 
NETREG_UNREGISTERING 
NETREG_UNREGISTERED 
NETREG_RELEASED 
NETREG_DUMMY 

Definition at line 1228 of file netdevice.h.

anonymous enum
Enumerator:
RTNL_LINK_INITIALIZED 
RTNL_LINK_INITIALIZING 

Definition at line 1238 of file netdevice.h.

Field Documentation

union { ... }
struct netdev_queue* _tx ____cacheline_aligned_in_smp

Definition at line 1188 of file netdevice.h.

unsigned char addr_assign_type

Definition at line 1105 of file netdevice.h.

unsigned char addr_len

Definition at line 1106 of file netdevice.h.

spinlock_t addr_list_lock

Definition at line 1110 of file netdevice.h.

unsigned int allmulti

Definition at line 1115 of file netdevice.h.

void* atalk_ptr

Definition at line 1126 of file netdevice.h.

void* ax25_ptr

Definition at line 1130 of file netdevice.h.

unsigned long base_addr

Definition at line 1034 of file netdevice.h.

unsigned char broadcast[MAX_ADDR_LEN]

Definition at line 1157 of file netdevice.h.

void(* destructor)(struct net_device *dev)

Definition at line 1244 of file netdevice.h.

Definition at line 1266 of file netdevice.h.

unsigned char* dev_addr

Definition at line 1150 of file netdevice.h.

Definition at line 1154 of file netdevice.h.

unsigned short dev_id

Definition at line 1108 of file netdevice.h.

struct list_head dev_list

Definition at line 1044 of file netdevice.h.

bool dismantle

Definition at line 1236 of file netdevice.h.

unsigned char dma

Definition at line 1090 of file netdevice.h.

struct dn_dev __rcu* dn_ptr

Definition at line 1128 of file netdevice.h.

Definition at line 1260 of file netdevice.h.

Definition at line 1075 of file netdevice.h.

Definition at line 1049 of file netdevice.h.

unsigned int flags

Definition at line 1080 of file netdevice.h.

Definition at line 1263 of file netdevice.h.

unsigned short gflags

Definition at line 1083 of file netdevice.h.

int group

Definition at line 1300 of file netdevice.h.

u16 gso_max_segs

Definition at line 1277 of file netdevice.h.

unsigned int gso_max_size

Definition at line 1275 of file netdevice.h.

unsigned short hard_header_len

Definition at line 1094 of file netdevice.h.

Definition at line 1078 of file netdevice.h.

netdev_features_t hw_features

Definition at line 1051 of file netdevice.h.

struct wireless_dev* ieee80211_ptr

Definition at line 1131 of file netdevice.h.

unsigned char if_port

Definition at line 1089 of file netdevice.h.

char* ifalias

Definition at line 1026 of file netdevice.h.

int ifindex

Definition at line 1058 of file netdevice.h.

int iflink

Definition at line 1059 of file netdevice.h.

struct hlist_node index_hlist

Definition at line 1223 of file netdevice.h.

struct netdev_queue __rcu* ingress_queue

Definition at line 1183 of file netdevice.h.

Definition at line 1129 of file netdevice.h.

struct in_device __rcu* ip_ptr

Definition at line 1127 of file netdevice.h.

unsigned int irq

Definition at line 1035 of file netdevice.h.

unsigned long last_rx

Definition at line 1137 of file netdevice.h.

unsigned char link_mode

Definition at line 1087 of file netdevice.h.

struct list_head link_watch_list

Definition at line 1225 of file netdevice.h.

Definition at line 1258 of file netdevice.h.

struct net_device* master

Definition at line 1145 of file netdevice.h.

Definition at line 1112 of file netdevice.h.

unsigned long mem_end

Definition at line 1032 of file netdevice.h.

unsigned long mem_start

Definition at line 1033 of file netdevice.h.

void* ml_priv

Definition at line 1257 of file netdevice.h.

unsigned int mtu

Definition at line 1092 of file netdevice.h.

char name[IFNAMSIZ]

Definition at line 1020 of file netdevice.h.

struct hlist_node name_hlist

Definition at line 1023 of file netdevice.h.

struct list_head napi_list

Definition at line 1045 of file netdevice.h.

unsigned short needed_headroom

Definition at line 1100 of file netdevice.h.

unsigned short needed_tailroom

Definition at line 1101 of file netdevice.h.

unsigned char neigh_priv_len

Definition at line 1107 of file netdevice.h.

struct net_device_ops* netdev_ops

Definition at line 1074 of file netdevice.h.

u8 num_tc

Definition at line 1283 of file netdevice.h.

unsigned int num_tx_queues

Definition at line 1191 of file netdevice.h.

unsigned char operstate

Definition at line 1086 of file netdevice.h.

unsigned short padded

Definition at line 1084 of file netdevice.h.

int __percpu* pcpu_refcnt

Definition at line 1218 of file netdevice.h.

unsigned char perm_addr[MAX_ADDR_LEN]

Definition at line 1104 of file netdevice.h.

struct phy_device* phydev

Definition at line 1295 of file netdevice.h.

struct pm_qos_request pm_qos_req

Definition at line 1302 of file netdevice.h.

u8 prio_tc_map[TC_BITMASK+1]

Definition at line 1285 of file netdevice.h.

unsigned int priv_flags

Definition at line 1081 of file netdevice.h.

unsigned int promiscuity

Definition at line 1114 of file netdevice.h.

struct Qdisc* qdisc

Definition at line 1197 of file netdevice.h.

struct lock_class_key* qdisc_tx_busylock

Definition at line 1297 of file netdevice.h.

unsigned int real_num_tx_queues

Definition at line 1194 of file netdevice.h.

enum { ... } reg_state

Definition at line 1271 of file netdevice.h.

enum { ... } rtnl_link_state
atomic_long_t rx_dropped

Definition at line 1062 of file netdevice.h.

rx_handler_func_t __rcu* rx_handler

Definition at line 1180 of file netdevice.h.

void __rcu* rx_handler_data

Definition at line 1181 of file netdevice.h.

unsigned long state

Definition at line 1042 of file netdevice.h.

Definition at line 1061 of file netdevice.h.

struct attribute_group* sysfs_groups[4]

Definition at line 1268 of file netdevice.h.

Definition at line 1284 of file netdevice.h.

struct list_head todo_list

Definition at line 1221 of file netdevice.h.

unsigned long trans_start

Definition at line 1212 of file netdevice.h.

Definition at line 1259 of file netdevice.h.

spinlock_t tx_global_lock

Definition at line 1200 of file netdevice.h.

unsigned long tx_queue_len

Definition at line 1199 of file netdevice.h.

unsigned short type

Definition at line 1093 of file netdevice.h.

Definition at line 1111 of file netdevice.h.

bool uc_promisc

Definition at line 1113 of file netdevice.h.

struct list_head unreg_list

Definition at line 1046 of file netdevice.h.

netdev_features_t vlan_features

Definition at line 1055 of file netdevice.h.

netdev_features_t wanted_features

Definition at line 1053 of file netdevice.h.

int watchdog_timeo

Definition at line 1214 of file netdevice.h.

struct timer_list watchdog_timer

Definition at line 1215 of file netdevice.h.


The documentation for this struct was generated from the following file: