Main Page | Directories | File List | Globals

data_str.c File Reference

#include <agnix/agnix.h>
#include <agnix/console.h>

Include dependency graph for data_str.c:

Go to the source code of this file.

Defines

#define MOD_NAME   "DATA_STR: "

Functions

int hash_static_init (void)
int btree_init (void)
int data_structures_init (void)


Define Documentation

#define MOD_NAME   "DATA_STR: "
 

Definition at line 17 of file data_str.c.


Function Documentation

int btree_init void   ) 
 

Definition at line 342 of file btree.c.

References btree_resource, btree_resource_desc, memset(), MOD_NAME, printk(), and register_resource().

Referenced by data_structures_init().

00343 {
00344     printk(MOD_NAME "Initializing b-trees\n");
00345 
00346     memset(btrees, 0, sizeof(struct btree_s ) * MAX_BTREES);
00347     btree_resource_desc = register_resource(&btree_resource);
00348 
00349     return 0;
00350 }

Here is the call graph for this function:

int data_structures_init void   ) 
 

Definition at line 22 of file data_str.c.

References btree_init(), hash_static_init(), kernel_panic(), and MOD_NAME.

Referenced by start_kernel().

00023 {
00024     if (hash_static_init() < 0)
00025         kernel_panic(MOD_NAME "Static hashing init error!");
00026 
00027     if (btree_init() < 0)
00028         kernel_panic(MOD_NAME "Btree init error!");
00029 
00030     return 0;
00031 }

Here is the call graph for this function:

int hash_static_init void   ) 
 

Definition at line 297 of file hash_st.c.

References memset().

Referenced by data_structures_init().

00298 {
00299     int i;
00300 
00301     for (i = 0; i < MAX_HASH_TABLES; i++) {
00302         memset((void *)&hash_tables[i], 0, sizeof(struct hash_table_s));
00303     }
00304 
00305     return 0;
00306 }

Here is the call graph for this function:

Dokumentacje wygenerowano programem Doxygen 1.4.2 dla projektu Agnix