Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
names.c File Reference
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <dirent.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <ctype.h>
#include "names.h"

Go to the source code of this file.

Data Structures

struct  vendor
 
struct  product
 
class  class
 
struct  subclass
 
struct  protocol
 
struct  audioterminal
 
struct  genericstrtable
 
struct  pool
 

Macros

#define HASH1   0x10
 
#define HASH2   0x02
 
#define HASHSZ   16
 
#define DBG(x)
 

Functions

const charnames_hid (u_int8_t hidd)
 
const charnames_reporttag (u_int8_t rt)
 
const charnames_huts (unsigned int data)
 
const charnames_hutus (unsigned int data)
 
const charnames_langid (u_int16_t langid)
 
const charnames_physdes (u_int8_t ph)
 
const charnames_bias (u_int8_t b)
 
const charnames_countrycode (unsigned int countrycode)
 
const charnames_vendor (u_int16_t vendorid)
 
const charnames_product (u_int16_t vendorid, u_int16_t productid)
 
const charnames_class (u_int8_t classid)
 
const charnames_subclass (u_int8_t classid, u_int8_t subclassid)
 
const charnames_protocol (u_int8_t classid, u_int8_t subclassid, u_int8_t protocolid)
 
const charnames_audioterminal (u_int16_t termt)
 
void names_free (void)
 
int names_init (char *n)
 

Macro Definition Documentation

#define DBG (   x)

Definition at line 469 of file names.c.

#define HASH1   0x10

Definition at line 92 of file names.c.

#define HASH2   0x02

Definition at line 93 of file names.c.

#define HASHSZ   16

Definition at line 94 of file names.c.

Function Documentation

const char* names_audioterminal ( u_int16_t  termt)

Definition at line 230 of file names.c.

const char* names_bias ( u_int8_t  b)

Definition at line 165 of file names.c.

const char* names_class ( u_int8_t  classid)

Definition at line 197 of file names.c.

const char* names_countrycode ( unsigned int  countrycode)

Definition at line 170 of file names.c.

void names_free ( void  )

Definition at line 271 of file names.c.

const char* names_hid ( u_int8_t  hidd)

Definition at line 135 of file names.c.

const char* names_huts ( unsigned int  data)

Definition at line 145 of file names.c.

const char* names_hutus ( unsigned int  data)

Definition at line 150 of file names.c.

int names_init ( char n)

Definition at line 783 of file names.c.

const char* names_langid ( u_int16_t  langid)

Definition at line 155 of file names.c.

const char* names_physdes ( u_int8_t  ph)

Definition at line 160 of file names.c.

const char* names_product ( u_int16_t  vendorid,
u_int16_t  productid 
)

Definition at line 186 of file names.c.

const char* names_protocol ( u_int8_t  classid,
u_int8_t  subclassid,
u_int8_t  protocolid 
)

Definition at line 219 of file names.c.

const char* names_reporttag ( u_int8_t  rt)

Definition at line 140 of file names.c.

const char* names_subclass ( u_int8_t  classid,
u_int8_t  subclassid 
)

Definition at line 208 of file names.c.

const char* names_vendor ( u_int16_t  vendorid)

Definition at line 175 of file names.c.