sys/src/lnmsub.c File Reference

#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 Documentation

#define lnm_aq_mutex   lnm_spin

Definition at line 379 of file lnmsub.c.

#define LNM_DEBUG

Definition at line 42 of file lnmsub.c.

#define lnmprintf   printk


Function Documentation

int lnm_check_prot (  ) 

Definition at line 343 of file lnmsub.c.

Referenced by exe_crelnt().

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 
)

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 
)

void lnm_lock ( void   ) 

Definition at line 382 of file lnmsub.c.

References sch_lockw().

void lnm_lockr ( void   ) 

Definition at line 390 of file lnmsub.c.

References sch_lockw().

Referenced by exe_trnlnm().

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 
)

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 
)

Definition at line 144 of file lnmsub.c.

References lnmprintf.

int lnm_searchlog ( struct struct_lnm_ret r,
int  loglen,
char *  lognam,
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 
)

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 
)

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   ) 

Definition at line 394 of file lnmsub.c.

References sch_unlockw().

void lnm_unlockw ( void   ) 

Definition at line 402 of file lnmsub.c.

References sch_unlockw().

int search_log_prc ( char *  name,
int  namelen,
char **  retname,
int *  retsize 
)

int search_log_repl ( char *  name,
char **  retname,
int *  retsize 
)

int search_log_sys ( char *  name,
int  namelen,
char **  retname,
int *  retsize 
)


Generated on Fri Oct 9 10:26:01 2009 for FreeVMS by  doxygen 1.5.5