Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
packer.c File Reference
#include <linux/export.h>
#include <linux/string.h>
#include <rdma/ib_pack.h>

Go to the source code of this file.

Functions

void ib_pack (const struct ib_field *desc, int desc_len, void *structure, void *buf)
 
 EXPORT_SYMBOL (ib_pack)
 
void ib_unpack (const struct ib_field *desc, int desc_len, void *buf, void *structure)
 
 EXPORT_SYMBOL (ib_unpack)
 

Function Documentation

EXPORT_SYMBOL ( ib_pack  )
EXPORT_SYMBOL ( ib_unpack  )
void ib_pack ( const struct ib_field desc,
int  desc_len,
void structure,
void buf 
)

ib_pack - Pack a structure into a buffer :Array of structure field descriptions :Number of entries in :Structure to pack from :Buffer to pack into

ib_pack() packs a list of structure fields into a buffer, controlled by the array of fields in .

Definition at line 62 of file packer.c.

void ib_unpack ( const struct ib_field desc,
int  desc_len,
void buf,
void structure 
)

ib_unpack - Unpack a buffer into a structure :Array of structure field descriptions :Number of entries in :Buffer to unpack from :Structure to unpack into

ib_pack() unpacks a list of structure fields from a buffer, controlled by the array of fields in .

Definition at line 149 of file packer.c.