dazuko_call.h File Reference

#include "dazuko_platform.h"
#include "dazuko_xp.h"

Go to the source code of this file.

Defines

#define call_xp_sys_hook   xp_sys_hook
#define call_xp_sys_unhook   xp_sys_unhook
#define call_xp_print   xp_print

Functions

static int call_xp_init_mutex (struct xp_mutex *mutex)
static int call_xp_down (struct xp_mutex *mutex)
static int call_xp_up (struct xp_mutex *mutex)
static int call_xp_destroy_mutex (struct xp_mutex *mutex)
static int call_xp_init_rwlock (struct xp_rwlock *rwlock)
static int call_xp_write_lock (struct xp_rwlock *rwlock)
static int call_xp_write_unlock (struct xp_rwlock *rwlock)
static int call_xp_read_lock (struct xp_rwlock *rlock)
static int call_xp_read_unlock (struct xp_rwlock *rlock)
static int call_xp_destroy_rwlock (struct xp_rwlock *rwlock)
static int call_xp_init_queue (struct xp_queue *queue)
static int call_xp_wait_until_condition (struct xp_queue *queue, int(*cfunction)(void *), void *cparam, int allow_interrupt)
static int call_xp_notify (struct xp_queue *queue)
static int call_xp_destroy_queue (struct xp_queue *queue)
static void * call_xp_malloc (size_t size)
static int call_xp_free (void *ptr)
static int call_xp_copyin (const void *user_src, void *kernel_dest, size_t size)
static int call_xp_copyout (const void *kernel_src, void *user_dest, size_t size)
static int call_xp_verify_user_writable (const void *user_ptr, size_t size)
static int call_xp_verify_user_readable (const void *user_ptr, size_t size)
static int call_xp_is_absolute_path (const char *path)
static int call_xp_atomic_set (struct xp_atomic *atomic, int value)
static int call_xp_atomic_inc (struct xp_atomic *atomic)
static int call_xp_atomic_dec (struct xp_atomic *atomic)
static int call_xp_atomic_read (struct xp_atomic *atomic)
static int call_xp_copy_file (struct xp_file *dest, struct xp_file *src)
static int call_xp_compare_file (struct xp_file *file1, struct xp_file *file2)
static int call_xp_fill_file_struct (struct dazuko_file_struct *dfs)
static int call_xp_id_compare (struct xp_daemon_id *id1, struct xp_daemon_id *id2)
static int call_xp_id_free (struct xp_daemon_id *id)
static struct xp_daemon_id * call_xp_id_copy (struct xp_daemon_id *id)


Define Documentation

#define call_xp_print   xp_print
 

Definition at line 52 of file dazuko_call.h.

Referenced by _dazuko_find_slot(), _dazuko_unregister_daemon(), dazuko_exit(), dazuko_get_an_access(), dazuko_handle_request(), dazuko_handle_user_request_compat12(), dazuko_init(), dazuko_is_selected(), dazuko_register_daemon(), dazuko_set_option(), and dazuko_sys_pre().

#define call_xp_sys_hook   xp_sys_hook
 

Definition at line 50 of file dazuko_call.h.

Referenced by dazuko_init().

#define call_xp_sys_unhook   xp_sys_unhook
 

Definition at line 51 of file dazuko_call.h.

Referenced by dazuko_exit().


Function Documentation

static int call_xp_atomic_dec (  struct xp_atomic *  atomic  )  [inline, static]
 

Definition at line 374 of file dazuko_call.h.

References NULL, xp_atomic_dec(), and xp_print().

Referenced by _dazuko_unregister_daemon().

static int call_xp_atomic_inc (  struct xp_atomic *  atomic  )  [inline, static]
 

Definition at line 363 of file dazuko_call.h.

References NULL, xp_atomic_inc(), and xp_print().

Referenced by dazuko_register_daemon().

static int call_xp_atomic_read (  struct xp_atomic *  atomic  )  [inline, static]
 

Definition at line 385 of file dazuko_call.h.

References NULL, xp_atomic_read(), and xp_print().

Referenced by _dazuko_unregister_daemon(), dazuko_exit(), dazuko_sys_check(), dazuko_sys_post(), and get_ready_slot_condition().

static int call_xp_atomic_set (  struct xp_atomic *  atomic,
int  value
)  [inline, static]
 

Definition at line 352 of file dazuko_call.h.

References NULL, xp_atomic_set(), and xp_print().

Referenced by dazuko_init(), and dazuko_register_daemon().

static int call_xp_compare_file (  struct xp_file *  file1,
struct xp_file *  file2
)  [inline, static]
 

Definition at line 416 of file dazuko_call.h.

References NULL, xp_compare_file(), and xp_print().

Referenced by dazuko_get_hash(), dazuko_mark_hash_dirty(), and dazuko_sys_pre().

static int call_xp_copy_file (  struct xp_file *  dest,
struct xp_file *  src
)  [inline, static]
 

Definition at line 399 of file dazuko_call.h.

References NULL, xp_copy_file(), and xp_print().

Referenced by dazuko_add_hash().

static int call_xp_copyin (  const void *  user_src,
void *  kernel_dest,
size_t  size
)  [inline, static]
 

Definition at line 255 of file dazuko_call.h.

References NULL, xp_copyin(), and xp_print().

Referenced by dazuko_handle_user_request(), and dazuko_handle_user_request_compat12().

static int call_xp_copyout (  const void *  kernel_src,
void *  user_dest,
size_t  size
)  [inline, static]
 

Definition at line 278 of file dazuko_call.h.

References NULL, xp_copyout(), and xp_print().

Referenced by dazuko_handle_user_request(), and dazuko_handle_user_request_compat12().

static int call_xp_destroy_mutex (  struct xp_mutex *  mutex  )  [inline, static]
 

Definition at line 90 of file dazuko_call.h.

References NULL, xp_destroy_mutex(), and xp_print().

Referenced by dazuko_exit().

static int call_xp_destroy_queue (  struct xp_queue *  queue  )  [inline, static]
 

Definition at line 212 of file dazuko_call.h.

References NULL, xp_destroy_queue(), and xp_print().

Referenced by dazuko_exit().

static int call_xp_destroy_rwlock (  struct xp_rwlock *  rwlock  )  [inline, static]
 

Definition at line 159 of file dazuko_call.h.

References NULL, xp_destroy_rwlock(), and xp_print().

Referenced by dazuko_exit().

static int call_xp_down (  struct xp_mutex *  mutex  )  [inline, static]
 

Definition at line 68 of file dazuko_call.h.

References NULL, xp_down(), and xp_print().

Referenced by _dazuko_find_slot(), dazuko_change_slot_state(), dazuko_find_slot_and_slotlist(), dazuko_get_new_unique(), dazuko_register_daemon(), dazuko_run_daemon(), dazuko_run_daemon_on_slotlist(), and dazuko_slot_state().

static int call_xp_fill_file_struct (  struct dazuko_file_struct *  dfs  )  [inline, static]
 

Definition at line 436 of file dazuko_call.h.

References NULL, xp_fill_file_struct(), and xp_print().

Referenced by dazuko_should_scan().

static int call_xp_free (  void *  ptr  )  [inline, static]
 

Definition at line 244 of file dazuko_call.h.

References NULL, xp_free(), and xp_print().

Referenced by dazuko_exit(), dazuko_handle_request(), dazuko_handle_user_request(), dazuko_handle_user_request_compat12(), dazuko_insert_path_fs(), dazuko_register_daemon(), dazuko_remove_all_hash(), dazuko_remove_all_paths(), and dazuko_sys_post().

static int call_xp_id_compare (  struct xp_daemon_id *  id1,
struct xp_daemon_id *  id2
)  [inline, static]
 

Definition at line 450 of file dazuko_call.h.

References NULL, xp_id_compare(), and xp_print().

Referenced by _dazuko_find_slot().

static struct xp_daemon_id* call_xp_id_copy (  struct xp_daemon_id *  id  )  [inline, static]
 

Definition at line 478 of file dazuko_call.h.

References NULL, xp_id_copy(), and xp_print().

Referenced by dazuko_handle_request(), dazuko_handle_user_request_compat12(), dazuko_is_our_daemon(), dazuko_register_daemon(), and dazuko_unregister_daemon().

static int call_xp_id_free (  struct xp_daemon_id *  id  )  [inline, static]
 

Definition at line 467 of file dazuko_call.h.

References NULL, xp_id_free(), and xp_print().

Referenced by _dazuko_unregister_daemon(), dazuko_handle_request(), dazuko_handle_user_request_compat12(), dazuko_is_our_daemon(), and dazuko_unregister_daemon().

static int call_xp_init_mutex (  struct xp_mutex *  mutex  )  [inline, static]
 

Definition at line 57 of file dazuko_call.h.

References NULL, xp_init_mutex(), and xp_print().

Referenced by dazuko_init(), and dazuko_register_daemon().

static int call_xp_init_queue (  struct xp_queue *  queue  )  [inline, static]
 

Definition at line 173 of file dazuko_call.h.

References NULL, xp_init_queue(), and xp_print().

Referenced by dazuko_init().

static int call_xp_init_rwlock (  struct xp_rwlock *  rwlock  )  [inline, static]
 

Definition at line 104 of file dazuko_call.h.

References NULL, xp_init_rwlock(), and xp_print().

Referenced by dazuko_init().

static int call_xp_is_absolute_path (  const char *  path  )  [inline, static]
 

Definition at line 338 of file dazuko_call.h.

References NULL, xp_is_absolute_path(), and xp_print().

Referenced by dazuko_insert_path_fs().

static void* call_xp_malloc (  size_t  size  )  [inline, static]
 

Definition at line 226 of file dazuko_call.h.

References NULL, xp_malloc(), and xp_print().

Referenced by dazuko_add_hash(), dazuko_get_value(), dazuko_handle_user_request(), dazuko_handle_user_request_compat12(), dazuko_insert_path_fs(), dazuko_register_daemon(), and dazuko_sys_pre().

static int call_xp_notify (  struct xp_queue *  queue  )  [inline, static]
 

Definition at line 201 of file dazuko_call.h.

References NULL, xp_notify(), and xp_print().

Referenced by __dazuko_change_slot_state(), _dazuko_unregister_daemon(), dazuko_get_an_access(), dazuko_return_access(), dazuko_run_daemon_on_slotlist(), and dazuko_state_error().

static int call_xp_read_lock (  struct xp_rwlock *  rlock  )  [inline, static]
 

Definition at line 137 of file dazuko_call.h.

References NULL, xp_print(), and xp_read_lock().

Referenced by dazuko_is_selected(), and dazuko_sys_pre().

static int call_xp_read_unlock (  struct xp_rwlock *  rlock  )  [inline, static]
 

Definition at line 148 of file dazuko_call.h.

References NULL, xp_print(), and xp_read_unlock().

Referenced by dazuko_is_selected(), and dazuko_sys_pre().

static int call_xp_up (  struct xp_mutex *  mutex  )  [inline, static]
 

Definition at line 79 of file dazuko_call.h.

References NULL, xp_print(), and xp_up().

Referenced by _dazuko_find_slot(), _dazuko_unregister_daemon(), dazuko_change_slot_state(), dazuko_find_slot_and_slotlist(), dazuko_get_new_unique(), dazuko_handle_request(), dazuko_handle_user_request_compat12(), dazuko_register_daemon(), dazuko_return_access(), dazuko_run_daemon(), dazuko_run_daemon_on_slotlist(), and dazuko_slot_state().

static int call_xp_verify_user_readable (  const void *  user_ptr,
size_t  size
)  [inline, static]
 

Definition at line 318 of file dazuko_call.h.

References NULL, xp_print(), and xp_verify_user_readable().

Referenced by dazuko_handle_user_request_compat12().

static int call_xp_verify_user_writable (  const void *  user_ptr,
size_t  size
)  [inline, static]
 

Definition at line 301 of file dazuko_call.h.

References NULL, xp_print(), and xp_verify_user_writable().

Referenced by dazuko_handle_user_request_compat12().

static int call_xp_wait_until_condition (  struct xp_queue *  queue,
int(*)(void *)  cfunction,
void *  cparam,
int  allow_interrupt
)  [inline, static]
 

Definition at line 184 of file dazuko_call.h.

References NULL, xp_print(), and xp_wait_until_condition().

Referenced by dazuko_get_an_access(), dazuko_return_access(), and dazuko_run_daemon_on_slotlist().

static int call_xp_write_lock (  struct xp_rwlock *  rwlock  )  [inline, static]
 

Definition at line 115 of file dazuko_call.h.

References NULL, xp_print(), and xp_write_lock().

Referenced by dazuko_add_hash(), dazuko_get_hash(), dazuko_insert_path_fs(), dazuko_mark_hash_dirty(), dazuko_remove_all_hash(), and dazuko_remove_all_paths().

static int call_xp_write_unlock (  struct xp_rwlock *  rwlock  )  [inline, static]
 

Definition at line 126 of file dazuko_call.h.

References NULL, xp_print(), and xp_write_unlock().

Referenced by dazuko_add_hash(), dazuko_get_hash(), dazuko_insert_path_fs(), dazuko_mark_hash_dirty(), dazuko_remove_all_hash(), and dazuko_remove_all_paths().


Generated on Fri Jun 17 09:45:29 2005 for RSBAC by  doxygen 1.4.2