Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
genksyms.c File Reference
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <assert.h>
#include <stdarg.h>
#include "genksyms.h"

Go to the source code of this file.


#define HASH_BUCKETS   4096
#define ARRAY_SIZE(arr)   (sizeof(arr) / sizeof((arr)[0]))


struct symbolfind_symbol (const char *name, enum symbol_type ns, int exact)
struct symboladd_symbol (const char *name, enum symbol_type type, struct string_list *defn, int is_extern)
void free_node (struct string_list *node)
void free_list (struct string_list *s, struct string_list *e)
struct string_listcopy_node (struct string_list *node)
struct string_listcopy_list_range (struct string_list *start, struct string_list *end)
void export_symbol (const char *name)
void error_with_pos (const char *fmt,...)
int main (int argc, char **argv)


int cur_line = 1
int in_source_file

Macro Definition Documentation

#define ARRAY_SIZE (   arr)    (sizeof(arr) / sizeof((arr)[0]))

Definition at line 419 of file genksyms.c.

#define HASH_BUCKETS   4096

Definition at line 37 of file genksyms.c.

Function Documentation

struct symbol* add_symbol ( const char name,
enum symbol_type  type,
struct string_list defn,
int  is_extern 

Definition at line 322 of file genksyms.c.

struct string_list* copy_list_range ( struct string_list start,
struct string_list end 

Definition at line 391 of file genksyms.c.

struct string_list* copy_node ( struct string_list node)

Definition at line 380 of file genksyms.c.

void error_with_pos ( const char fmt,

Definition at line 714 of file genksyms.c.

void export_symbol ( const char name)

Definition at line 645 of file genksyms.c.

struct symbol* find_symbol ( const char name,
enum symbol_type  ns,
int  exact 

Definition at line 167 of file genksyms.c.

void free_list ( struct string_list s,
struct string_list e 

Definition at line 342 of file genksyms.c.

void free_node ( struct string_list node)

Definition at line 336 of file genksyms.c.

int main ( int  argc,
char **  argv 

Definition at line 759 of file genksyms.c.

Variable Documentation

char* cur_filename

Definition at line 43 of file genksyms.c.

int cur_line = 1

Definition at line 42 of file genksyms.c.

int in_source_file

Definition at line 44 of file genksyms.c.

int n

Definition at line 58 of file genksyms.c.

const char* name

Definition at line 59 of file genksyms.c.

char * source_file

Definition at line 43 of file genksyms.c.