#include <linux/mm.h>
#include <sysgen.h>
#include <lnmdef.h>
#include <lnmsub.h>
#include <system_data_cells.h>
#include <queue.h>
#include <lnmstrdef.h>
#include <ssdef.h>
#include <descrip.h>
#include <misc.h>
#include <exe_routines.h>
#include <sch_routines.h>
#include <misc_routines.h>
#include <linux/slab.h>
#include <internals.h>
#include <mtxdef.h>
Go to the source code of this file.
Defines | |
#define | LNM_DEBUG |
#define | lnmprintf printk |
#define | lnm_aq_mutex lnm_spin |
Functions | |
int | lnm_hash (const int length, const unsigned char *log, const unsigned long mask, unsigned long *myhash) |
int | lnm_searchlog (struct struct_lnm_ret *r, int loglen, char *lognam, int tabnamlen, char *tablename) |
int | lnm_search_one (struct struct_lnm_ret *r, int loglen, char *logical, int tabnamlen, char *tablename, char *result) |
int | lnm_presearch (struct struct_lnm_ret *r, struct lnmhshs *hashtable, struct struct_nt *nt) |
int | lnm_contsearch (struct struct_lnm_ret *r, int hash, struct lnmhshs *hashtable, struct struct_nt *nt) |
int | lnm_firsttab (struct struct_lnm_ret *r, int tabnamlen, char *tablename) |
int | lnm_setup (struct struct_lnm_ret *r, struct struct_rt *RT, int tabnamlen, char *tablename, struct struct_nt *nt) |
int | lnm_table (struct struct_lnm_ret *r, struct struct_rt *rt, struct struct_nt *nt) |
int | lnm_lookup (struct struct_lnm_ret *r, struct struct_rt *rt, int loglen, char *lognam, struct struct_nt *nt) |
int | lnm_table_srch (struct struct_lnm_ret *r, struct struct_rt *RT, struct struct_nt *nt) |
int | lnm_inslogtab (struct struct_lnm_ret *r, struct _lnmb *mylnmb) |
int | lnm_check_prot () |
void | lnm_lock (void) |
void | lnm_unlock (void) |
void | lnm_lockr (void) |
void | lnm_unlockr (void) |
void | lnm_lockw (void) |
void | lnm_unlockw (void) |
int | search_log_prc (char *name, int namelen, char **retname, int *retsize) |
int | search_log_sys (char *name, int namelen, char **retname, int *retsize) |
int | search_log_repl (char *name, char **retname, int *retsize) |
#define lnm_aq_mutex lnm_spin |
#define lnmprintf printk |
Definition at line 45 of file lnmsub.c.
Referenced by exe_crelnt(), exe_trnlnm(), lnm_contsearch(), lnm_firsttab(), lnm_hash(), lnm_init_prc(), lnm_init_sys(), lnm_inslogtab(), lnm_lookup(), lnm_presearch(), lnm_search_one(), lnm_searchlog(), lnm_setup(), and lnm_table_srch().
int lnm_check_prot | ( | ) |
int lnm_contsearch | ( | struct struct_lnm_ret * | r, | |
int | hash, | |||
struct lnmhshs * | hashtable, | |||
struct struct_nt * | nt | |||
) |
Definition at line 171 of file lnmsub.c.
References lnmhshs::entry, _lnmb::lnmb_b_count, struct_nt::lnmb_cur, _lnmb::lnmb_l_flink, _lnmb::lnmb_l_table, _lnmb::lnmb_t_name, lnmprintf, struct_nt::lnmth, struct_nt::loglen, struct_nt::lognam, struct_lnm_ret::mylnmb, SS__NOLOGNAM, and SS__NORMAL.
Referenced by lnm_presearch(), and lnm_searchlog().
int lnm_firsttab | ( | struct struct_lnm_ret * | r, | |
int | tabnamlen, | |||
char * | tablename | |||
) |
Definition at line 223 of file lnmsub.c.
References lnm_setup(), lnmfree, lnmmalloc, lnmprintf, struct_nt::loglen, and struct_nt::lognam.
Referenced by exe_crelnm(), and exe_crelnt().
int lnm_hash | ( | const int | length, | |
const unsigned char * | log, | |||
const unsigned long | mask, | |||
unsigned long * | myhash | |||
) |
Definition at line 49 of file lnmsub.c.
References lnmprintf, LNMSHASHTBL, and SS__NORMAL.
Referenced by lnm_init_prc(), lnm_init_sys(), lnm_inslogtab(), lnm_presearch(), and lnm_searchlog().
int lnm_inslogtab | ( | struct struct_lnm_ret * | r, | |
struct _lnmb * | mylnmb | |||
) |
Definition at line 315 of file lnmsub.c.
References lnmhshs::entry, lnm_hash(), _lnmb::lnmb_b_count, _lnmb::lnmb_l_blink, _lnmb::lnmb_l_flink, _lnmb::lnmb_l_table, lnmmalloc, and lnmprintf.
Referenced by exe_crelnm(), and exe_crelnt().
void lnm_lock | ( | void | ) |
void lnm_lockr | ( | void | ) |
void lnm_lockw | ( | void | ) |
Definition at line 398 of file lnmsub.c.
References sch_lockw().
Referenced by exe_crelnm(), exe_crelnt(), and exe_dellnm().
int lnm_lookup | ( | struct struct_lnm_ret * | r, | |
struct struct_rt * | rt, | |||
int | loglen, | |||
char * | lognam, | |||
struct struct_nt * | nt | |||
) |
Definition at line 265 of file lnmsub.c.
References _pcb, ctl_gl_lnmhash, ctl_gl_pcb, lnm_al_dirtbl, lnm_presearch(), struct_nt::lnmb, lnmprintf, struct_nt::loglen, struct_nt::lognam, and SS__NOLOGNAM.
Referenced by lnm_setup(), and lnm_table_srch().
int lnm_presearch | ( | struct struct_lnm_ret * | r, | |
struct lnmhshs * | hashtable, | |||
struct struct_nt * | nt | |||
) |
Definition at line 156 of file lnmsub.c.
References lnm_contsearch(), lnm_hash(), lnmfree, lnmmalloc, lnmprintf, struct_nt::loglen, and struct_nt::lognam.
Referenced by lnm_lookup(), and lnm_searchlog().
int lnm_search_one | ( | struct struct_lnm_ret * | r, | |
int | loglen, | |||
char * | logical, | |||
int | tabnamlen, | |||
char * | tablename, | |||
char * | result | |||
) |
int lnm_searchlog | ( | struct struct_lnm_ret * | r, | |
int | loglen, | |||
char * | lognam, | |||
int | tabnamlen, | |||
char * | tablename | |||
) |
Definition at line 99 of file lnmsub.c.
References _pcb, ctl_gl_lnmhash, ctl_gl_pcb, struct_nt::hash, kfree(), lnm_contsearch(), lnm_hash(), lnm_presearch(), lnm_setup(), lnm_table(), lnmmalloc, lnmprintf, struct_nt::loglen, and struct_nt::lognam.
Referenced by exe_trnlnm(), ioc_std_trandevnam(), search_log_prc(), and search_log_sys().
int lnm_setup | ( | struct struct_lnm_ret * | r, | |
struct struct_rt * | RT, | |||
int | tabnamlen, | |||
char * | tablename, | |||
struct struct_nt * | nt | |||
) |
Definition at line 242 of file lnmsub.c.
References struct_rt::context, struct_rt::depth, lnm_lookup(), lnm_table(), lnm_table_srch(), lnmprintf, struct_lnm_ret::mylnmb, SS__NORMAL, and struct_rt::tries.
Referenced by lnm_firsttab(), and lnm_searchlog().
int lnm_table | ( | struct struct_lnm_ret * | r, | |
struct struct_rt * | rt, | |||
struct struct_nt * | nt | |||
) |
Definition at line 258 of file lnmsub.c.
References lnm_table_srch().
Referenced by lnm_searchlog(), and lnm_setup().
int lnm_table_srch | ( | struct struct_lnm_ret * | r, | |
struct struct_rt * | RT, | |||
struct struct_nt * | nt | |||
) |
Definition at line 286 of file lnmsub.c.
References struct_rt::context, struct_rt::depth, struct_rt::flags, lnm_lookup(), lnmprintf, _lnmx::lnmx_l_flags, _lnmx::lnmx_l_index, _lnmx::lnmx_l_next, _lnmx::lnmx_l_xlen, LNMX_M_TERMINAL, _lnmx::lnmx_t_xlation, struct_lnm_ret::mylnmb, SS__NORMAL, SS__TOOMANYLNAM, and struct_rt::tries.
Referenced by lnm_setup(), and lnm_table().
void lnm_unlock | ( | void | ) |
Definition at line 386 of file lnmsub.c.
References sch_unlockw().
Referenced by exe_crelnm(), exe_crelnt(), and exe_trnlnm().
void lnm_unlockr | ( | void | ) |
void lnm_unlockw | ( | void | ) |
int search_log_prc | ( | char * | name, | |
int | namelen, | |||
char ** | retname, | |||
int * | retsize | |||
) |
Definition at line 408 of file lnmsub.c.
References item_list_3::bufaddr, item_list_3::buflen, exe_trnlnm(), item_list_3::item_code, kmalloc(), LNM__STRING, LNM_C_NAMLENGTH, lnm_searchlog(), struct_lnm_ret::mylnmb, and item_list_3::retlenaddr.
int search_log_repl | ( | char * | name, | |
char ** | retname, | |||
int * | retsize | |||
) |
Definition at line 548 of file lnmsub.c.
References item_list_3::bufaddr, item_list_3::buflen, item_list_3::item_code, LNM__STRING, item_list_3::retlenaddr, and sys_trnlnm().
int search_log_sys | ( | char * | name, | |
int | namelen, | |||
char ** | retname, | |||
int * | retsize | |||
) |
Definition at line 451 of file lnmsub.c.
References item_list_3::bufaddr, item_list_3::buflen, exe_trnlnm(), item_list_3::item_code, kmalloc(), LNM__STRING, LNM_C_NAMLENGTH, lnm_searchlog(), struct_lnm_ret::mylnmb, and item_list_3::retlenaddr.