Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
<Protocol> Protocol Reference

Detailed Description

__rtnl_register - Register a rtnetlink message type PF_UNSPEC : rtnetlink message type : Function pointer called for each request message : Function pointer called for each dump request (NLM_F_DUMP) message : Function pointer to calc size of dump message

Registers the specified function pointers (at least one of them has to be non-NULL) to be called whenever a request message for the specified protocol family and message type is received.

The special protocol family PF_UNSPEC may be used to define fallback function pointers for the case when no entry for the specific protocol family exists.

Returns 0 on success or a negative error code.

rtnl_unregister - Unregister a rtnetlink message type PF_UNSPEC : rtnetlink message type

Returns 0 on success or a negative error code.

rtnl_unregister_all - Unregister all rtnetlink message type of a protocol PF_UNSPEC

Identical to calling rtnl_unregster() for all registered message types of a certain protocol family.


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