Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
ndo_change_carrier [2018/08/04 12:23] – [include/linux/netdevice.h] rpjdayndo_change_carrier [2018/08/04 17:31] (current) – [Overview] rpjday
Line 1: Line 1:
 ===== Overview ===== ===== Overview =====
  
-Setting/detecting carrier, and the subsequent implications of setting ''net_device_ops'' ''ndo_change_carrier'' field.+Setting/detecting carrier, and the subsequent implications of setting ''net_device_ops'' ''ndo_change_carrier'' field (if any implications actually exist):
  
 ===== Normal behaviour ===== ===== Normal behaviour =====
  
-==== include/linux/netdevice.h ====+==== Net device state ==== 
 + 
 +From ''include/linux/netdevice.h'':
  
 Net device state: Net device state:
Line 28: Line 30:
 </code> </code>
  
-Check if carrier is present on device:+==== Checking for state of carrier ==== 
 + 
 +Again from ''netdevice.h'':
  
 <code> <code>
Line 46: Line 50:
 </code> </code>
  
-Running?+==== Test for interface running ==== 
 + 
 +Still in ''netdevice.h'':
  
 <code> <code>
Line 60: Line 66:
 } }
 </code> </code>
-==== net/sched/sch_generic.c ====+==== Test if carrier on or off ==== 
 + 
 +From ''net/sched/sch_generic.c'':
  
 <code> <code>
  • ndo_change_carrier.1533385386.txt.gz
  • Last modified: 2018/08/04 12:23
  • by rpjday