Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
avtab.c File Reference
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/errno.h>
#include "avtab.h"
#include "policydb.h"

Go to the source code of this file.

Functions

struct avtab_nodeavtab_insert_nonunique (struct avtab *h, struct avtab_key *key, struct avtab_datum *datum)
 
struct avtab_datumavtab_search (struct avtab *h, struct avtab_key *key)
 
struct avtab_nodeavtab_search_node (struct avtab *h, struct avtab_key *key)
 
struct avtab_nodeavtab_search_node_next (struct avtab_node *node, int specified)
 
void avtab_destroy (struct avtab *h)
 
int avtab_init (struct avtab *h)
 
int avtab_alloc (struct avtab *h, u32 nrules)
 
void avtab_hash_eval (struct avtab *h, char *tag)
 
int avtab_read_item (struct avtab *a, void *fp, struct policydb *pol, int(*insertf)(struct avtab *a, struct avtab_key *k, struct avtab_datum *d, void *p), void *p)
 
int avtab_read (struct avtab *a, void *fp, struct policydb *pol)
 
int avtab_write_item (struct policydb *p, struct avtab_node *cur, void *fp)
 
int avtab_write (struct policydb *p, struct avtab *a, void *fp)
 
void avtab_cache_init (void)
 
void avtab_cache_destroy (void)
 

Function Documentation

int avtab_alloc ( struct avtab h,
u32  nrules 
)

Definition at line 252 of file avtab.c.

void avtab_cache_destroy ( void  )

Definition at line 553 of file avtab.c.

void avtab_cache_init ( void  )

Definition at line 546 of file avtab.c.

void avtab_destroy ( struct avtab h)

Definition at line 222 of file avtab.c.

void avtab_hash_eval ( struct avtab h,
char tag 
)

Definition at line 286 of file avtab.c.

int avtab_init ( struct avtab h)

Definition at line 245 of file avtab.c.

struct avtab_node* avtab_insert_nonunique ( struct avtab h,
struct avtab_key key,
struct avtab_datum datum 
)
read

Definition at line 98 of file avtab.c.

int avtab_read ( struct avtab a,
void fp,
struct policydb pol 
)

Definition at line 460 of file avtab.c.

int avtab_read_item ( struct avtab a,
void fp,
struct policydb pol,
int(*)(struct avtab *a, struct avtab_key *k, struct avtab_datum *d, void *p insertf,
void p 
)

Definition at line 326 of file avtab.c.

struct avtab_datum* avtab_search ( struct avtab h,
struct avtab_key key 
)
read

Definition at line 128 of file avtab.c.

struct avtab_node* avtab_search_node ( struct avtab h,
struct avtab_key key 
)
read

Definition at line 163 of file avtab.c.

struct avtab_node* avtab_search_node_next ( struct avtab_node node,
int  specified 
)
read

Definition at line 194 of file avtab.c.

int avtab_write ( struct policydb p,
struct avtab a,
void fp 
)

Definition at line 524 of file avtab.c.

int avtab_write_item ( struct policydb p,
struct avtab_node cur,
void fp 
)

Definition at line 504 of file avtab.c.