Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
netio_pkt_handle_t Struct Reference

A handle for an I/O packet's storage.netio_pkt_handle_t encodes the concept of a netio_pkt_t with its packet metadata removed. It is a much smaller type that exists to facilitate applications where the full netio_pkt_t type is too large, such as those that cache enormous numbers of packets or wish to transmit packet descriptors over the UDN. More...

#include <netio_intf.h>

Data Fields

unsigned int word
 

Detailed Description

A handle for an I/O packet's storage.

netio_pkt_handle_t encodes the concept of a netio_pkt_t with its packet metadata removed. It is a much smaller type that exists to facilitate applications where the full netio_pkt_t type is too large, such as those that cache enormous numbers of packets or wish to transmit packet descriptors over the UDN.

Because there is no metadata, most netio_pkt_t operations cannot be performed on a netio_pkt_handle_t. It supports only netio_free_handle() (to free the buffer) and NETIO_PKT_CUSTOM_DATA_H() (to access a pointer to its contents). The application must acquire any additional metadata it wants from the original netio_pkt_t and record it separately.

A netio_pkt_handle_t can be extracted from a netio_pkt_t by calling NETIO_PKT_HANDLE(). An invalid handle (analogous to NULL) can be created by assigning the value NETIO_PKT_HANDLE_NONE. A handle can be tested for validity with NETIO_PKT_HANDLE_IS_VALID().

Definition at line 522 of file netio_intf.h.

Field Documentation

unsigned int word

Opaque bits.

Definition at line 524 of file netio_intf.h.


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