User Tools

Site Tools


networking:generic_netlink_howto

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
networking:generic_netlink_howto [2016/12/04 12:55]
dcarrel removing spam
networking:generic_netlink_howto [2017/05/18 15:45] (current)
Yaron_Shragai genl_register_ops is deprecated - provided appropriate replacement information.
Line 119: Line 119:
      goto failure;</​code>​      goto failure;</​code>​
            
-NOTE: This function doesn'​t exist past linux 3.12. 
- 
 This call registers the new family name with the Generic Netlink mechanism and This call registers the new family name with the Generic Netlink mechanism and
 requests a new channel number which is stored in the genl_family struct, requests a new channel number which is stored in the genl_family struct,
Line 133: Line 131:
  if (rc != 0)  if (rc != 0)
      goto failure;</​code>​      goto failure;</​code>​
 +
 +NOTE: This function doesn'​t exist past linux 3.12.
 +Up to linux 4.10, use genl_register_family_with_ops().
 +On 4.10 and later, include a reference to your genl_ops struct as an element
 +in the genl_family struct (element .ops), as well as the number of commands
 +(element .n_ops).
  
 This call registers the DOC_EXMPL_C_ECHO operation in association with the This call registers the DOC_EXMPL_C_ECHO operation in association with the
networking/generic_netlink_howto.1480856116.txt.gz · Last modified: 2016/12/04 12:55 by dcarrel