Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
oid_registry.c File Reference
#include <linux/export.h>
#include <linux/oid_registry.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/bug.h>
#include "oid_registry_data.c"

Go to the source code of this file.

Functions

enum OID look_up_OID (const void *data, size_t datasize)
 
 EXPORT_SYMBOL_GPL (look_up_OID)
 
int sprint_oid (const void *data, size_t datasize, char *buffer, size_t bufsize)
 
 EXPORT_SYMBOL_GPL (sprint_oid)
 
int sprint_OID (enum OID oid, char *buffer, size_t bufsize)
 
 EXPORT_SYMBOL_GPL (sprint_OID)
 

Function Documentation

EXPORT_SYMBOL_GPL ( look_up_OID  )
EXPORT_SYMBOL_GPL ( sprint_oid  )
EXPORT_SYMBOL_GPL ( sprint_OID  )
enum OID look_up_OID ( const void data,
size_t  datasize 
)

look_up_OID - Find an OID registration for the specified data : Binary representation of the OID : Size of the binary representation

Definition at line 24 of file oid_registry.c.

int sprint_oid ( const void data,
size_t  datasize,
char buffer,
size_t  bufsize 
)

Definition at line 105 of file oid_registry.c.

int sprint_OID ( enum OID  oid,
char buffer,
size_t  bufsize 
)

sprint_OID - Print an Object Identifier into a buffer : The OID to print : The buffer to render into : The size of the buffer

The OID is rendered into the buffer in "a.b.c.d" format and the number of bytes is returned.

Definition at line 158 of file oid_registry.c.