File libsrc/bpo_alloc.c


Included Files


Local Variables

shalloc_name
static char shalloc_name[]
Used in: shalloc()  
  shalloc_init()  
  shfree()  

Global Function bpo_strdup()

char* bpo_strdup ( const void* hint, const char* s1 )
Prototyped in: mplib1/bpo_alloc.h
Calls: Sstrcpy() libsrc/safe_string.c
  Sstrlen() libsrc/safe_string.c
  shalloc() libsrc/bpo_alloc.c

Global Function bpo_strdup_offset()

off_t bpo_strdup_offset ( const void* hint, const char* s1 )
Prototyped in: mplib1/bpo_alloc.h
Calls: Get_SODB_Offset() libsrc/bpo_init.c
  Sstrcpy() libsrc/safe_string.c
  Sstrlen() libsrc/safe_string.c
  shalloc() libsrc/bpo_alloc.c
Called by: Register_Process_Details() libsrc/bpo_proc.c

Global Function shalloc()

void* shalloc ( const void* hint, size_t how_much )
Prototyped in: mplib1/bpo_alloc.h
Calls: Find_SODB_Resource() libsrc/bpo_resource.c
  Get_SODB_Base() libsrc/bpo_init.c
  b_Lock() libsrc/bpo_lock.c
  b_Unlock() libsrc/bpo_lock.c
  find_sz_in_free_list() libsrc/bpo_alloc.c
  init_sth() libsrc/bpo_alloc.c
  put_on_sh_list() libsrc/bpo_alloc.c
  shalloc_sth() libsrc/bpo_alloc.c
  memset()
Called by: Fetch_SODB_Resource() libsrc/bpo_res_2.c
  Find_Proc_List() libsrc/bpo_proc.c
  Get_Q_pid() libsrc/bpo_queue.c
  New_Q() libsrc/bpo_queue.c
  Register_Process_Details() libsrc/bpo_proc.c
  add_res_func() libsrc/bpo_resource.c
  bpo_strdup() libsrc/bpo_alloc.c
  bpo_strdup_offset() libsrc/bpo_alloc.c
  get_Q_resource() libsrc/bpo_queue.c
References Variables: shalloc_name libsrc/bpo_alloc.c

Global Function shalloc_init()

struct sodb_resource* shalloc_init ( void* seg_base, off_t shalloc_base_off, size_t shalloc_sz )
Prototyped in: include/bpo_alloc_private.h
Calls: Sstrcpy() libsrc/safe_string.c
  b_Init() libsrc/bpo_lock.c
  b_Lock() libsrc/bpo_lock.c
  b_Unlock() libsrc/bpo_lock.c
  bpo_Init_Node_Raw() libsrc/bpo_l_019.c
  init_sth() libsrc/bpo_alloc.c
  put_on_sh_list() libsrc/bpo_alloc.c
Called by: Create_SODB_mmap_raw() libsrc/bpo_init.c
  Create_SODB_shm_raw() libsrc/bpo_init.c
References Variables: shalloc_name libsrc/bpo_alloc.c

Global Function shfree()

void shfree ( void* freep )
Prototyped in: mplib1/bpo_alloc.h
Calls: Find_SODB_Resource() libsrc/bpo_resource.c
  Get_SODB_Base() libsrc/bpo_init.c
  b_Lock() libsrc/bpo_lock.c
  b_Unlock() libsrc/bpo_lock.c
  init_sth() libsrc/bpo_alloc.c
  put_on_sh_list() libsrc/bpo_alloc.c
  remove_ptr_from_list() libsrc/bpo_alloc.c
  shfree_merge() libsrc/bpo_alloc.c
Called by: Fetch_SODB_Resource() libsrc/bpo_res_2.c
  Find_Proc_List() libsrc/bpo_proc.c
  Remove_Shm_Process() libsrc/bpo_proc.c
  bpo_Free_Node() libsrc/bpo_l_027.c
  free_q_stuff() libsrc/bpo_queue.c
  get_Q_resource() libsrc/bpo_queue.c
  get_pids() libsrc/bpo_queue.c
  remove_and_free() libsrc/bpo_l_026.c
  shfree_off() libsrc/bpo_proc.c
References Variables: shalloc_name libsrc/bpo_alloc.c

Local Function find_sz_in_free_list()

static off_t find_sz_in_free_list ( size_t free_sz, char* seg_base, struct shalloc_base* sh_base )
Called by: shalloc() libsrc/bpo_alloc.c
  shalloc_sth() libsrc/bpo_alloc.c

Local Function init_sth()

static off_t init_sth ( struct shalloc_track_head* sthp, int num_tracks, char* seg_base )
Called by: shalloc() libsrc/bpo_alloc.c
  shalloc_init() libsrc/bpo_alloc.c
  shfree() libsrc/bpo_alloc.c

Local Function put_on_sh_list()

static int put_on_sh_list ( void* freep, size_t free_sz, char* seg_base, struct shalloc_base* sh_base, struct shalloc_track_head* sthp )
Called by: shalloc() libsrc/bpo_alloc.c
  shalloc_init() libsrc/bpo_alloc.c
  shfree() libsrc/bpo_alloc.c

Local Function remove_ptr_from_list()

static off_t remove_ptr_from_list ( void* freep, size_t* free_sz, char* seg_base, struct shalloc_base* sh_base, struct shalloc_track_head* sthp )
Called by: shfree() libsrc/bpo_alloc.c

Local Function shalloc_sth()

static off_t shalloc_sth ( void* seg_base, struct shalloc_base* sh_base, int num_tracks )
Calls: find_sz_in_free_list() libsrc/bpo_alloc.c
Called by: shalloc() libsrc/bpo_alloc.c

Local Function shfree_merge()

static int shfree_merge ( char* seg_base, struct shalloc_base* sh_base, char* freep, size_t freesz, int recurse_flag )
Calls: shfree_merge() libsrc/bpo_alloc.c
Called by: shfree() libsrc/bpo_alloc.c
  shfree_merge() libsrc/bpo_alloc.c