File libsrc/bpo_proc.c


Included Files


Type struct proc_man

struct proc_man
struct proc_man  
   {  
      struct shm_proc_list* splp;  
      struct shm_process* spp;  
      const char* pid_str;  
   }  

Local Variables

cached_procs
static dl_List_t cached_procs
Used in: cache_procs()  
  init_pid_stuff()  

my_pid
static pid_t my_pid

Used in: init_pid_stuff()  

proc_debug_str
static char proc_debug_str[]

Used in: Add_This_Pid_Resource()  
  Deregister_Process_Details()  
  Find_Proc_List()  
  Get_Cache_Procs()  
  Inform_Named_Pipe()  
  Inform_Process_Str()  
  Register_Process_Details()  

bpo_proc_debug
static int bpo_proc_debug

Used in: Add_This_Pid_Resource()  
  Deregister_Process_Details()  
  Find_Proc_List()  
  Get_Cache_Procs()  
  Inform_Named_Pipe()  
  Inform_Process_Str()  
  Register_Process_Details()  
  add_this_to_cache()  
  cache_procs()  
  inform_lpp()  

processes
static char processes[]

Used in: Find_Proc_List()  

Global Function Add_This_Pid_Resource()

int Add_This_Pid_Resource ( const void* hint, bpo_Node_t* nptr )
Prototyped in: mplib1/bpo_proc.h
Calls: Find_Proc_List() libsrc/bpo_proc.c
  bpo_Add_Tail() libsrc/bpo_l_009.c
  bpo_Find_Item_By_Name() libsrc/bpo_l_010.c
  gen_pid_str() libsrc/pidstr.c
  get_private_flag() libsrc/cfg_f_015.c
  init_pid_stuff() libsrc/bpo_proc.c
  getpid()
Called by: rem_this_q_item() libsrc/bpo_queue.c
References Variables: bpo_proc_debug libsrc/bpo_proc.c
  proc_debug_str libsrc/bpo_proc.c

Global Function Deregister_Process_Details()

int Deregister_Process_Details ( const void* hint )
Prototyped in: mplib1/bpo_proc.h
Calls: Find_Proc_List() libsrc/bpo_proc.c
  Get_My_Proc_Details() libsrc/bpo_proc_me.c
  Get_SODB_Privs() libsrc/bpo_init.c
  Remove_Shm_Process() libsrc/bpo_proc.c
  get_private_flag() libsrc/cfg_f_015.c
  init_pid_stuff() libsrc/bpo_proc.c
References Variables: bpo_proc_debug libsrc/bpo_proc.c
  proc_debug_str libsrc/bpo_proc.c

Global Function Find_Proc_List()

struct shm_proc_list* Find_Proc_List ( const void* hint )
Prototyped in: include/bpo_proc_internal.h
Calls: Add_SODB_Resource() libsrc/bpo_resource.c
  Find_SODB_Resource() libsrc/bpo_resource.c
  Get_SODB_Offset() libsrc/bpo_init.c
  bpo_Init_List() libsrc/bpo_l_002.c
  fprintfile() libsrc/fprintfile.c
  get_private_flag() libsrc/cfg_f_015.c
  init_pid_stuff() libsrc/bpo_proc.c
  shalloc() libsrc/bpo_alloc.c
  shfree() libsrc/bpo_alloc.c
  time()
Called by: Add_This_Pid_Resource() libsrc/bpo_proc.c
  Deregister_Process_Details() libsrc/bpo_proc.c
  Get_Cache_Procs() libsrc/bpo_proc.c
  Inform_Process_Str() libsrc/bpo_proc.c
  Register_Process_Details() libsrc/bpo_proc.c
  Remove_Shm_Process() libsrc/bpo_proc.c
  Validate_Processes() libsrc/bpo_val_proc.c
References Variables: bpo_proc_debug libsrc/bpo_proc.c
  proc_debug_str libsrc/bpo_proc.c
  processes libsrc/bpo_proc.c

Global Function Get_Cache_Procs()

struct cache_proc_list* Get_Cache_Procs ( const void* hint )
Prototyped in: include/bpo_proc_internal.h
Calls: Find_Proc_List() libsrc/bpo_proc.c
  cache_procs() libsrc/bpo_proc.c
  get_private_flag() libsrc/cfg_f_015.c
  init_pid_stuff() libsrc/bpo_proc.c
Called by: Validate_Processes() libsrc/bpo_val_proc.c
References Variables: bpo_proc_debug libsrc/bpo_proc.c
  proc_debug_str libsrc/bpo_proc.c

Global Function Inform_Named_Pipe()

int Inform_Named_Pipe ( const char* pipe_name )
Prototyped in: mplib1/bpo_proc.h
Calls: fprintfile() libsrc/fprintfile.c
  get_private_flag() libsrc/cfg_f_015.c
  inform_this_pipe() libsrc/bpo_proc.c
References Variables: bpo_proc_debug libsrc/bpo_proc.c
  proc_debug_str libsrc/bpo_proc.c

Global Function Inform_Process_Pid()

int Inform_Process_Pid ( const void* hint, pid_t pid )
Prototyped in: mplib1/bpo_proc.h
Calls: Inform_Process_Str() libsrc/bpo_proc.c
  gen_pid_str() libsrc/pidstr.c

Global Function Inform_Process_Str()

int Inform_Process_Str ( const void* hint, const char* pid_str )
Prototyped in: mplib1/bpo_proc.h
Calls: Find_Proc_List() libsrc/bpo_proc.c
  cache_procs() libsrc/bpo_proc.c
  dl_Find_Item_By_Name() libsrc/dl_l_009.c
  fprintfile() libsrc/fprintfile.c
  get_private_flag() libsrc/cfg_f_015.c
  inform_lpp() libsrc/bpo_proc.c
  init_pid_stuff() libsrc/bpo_proc.c
Called by: Inform_Process_Pid() libsrc/bpo_proc.c
  inform_this_pid() libsrc/bpo_queue.c
References Variables: bpo_proc_debug libsrc/bpo_proc.c
  proc_debug_str libsrc/bpo_proc.c

Global Function Register_Process_Details()

int Register_Process_Details ( const void* hint )
Prototyped in: mplib1/bpo_proc.h
Calls: Find_Proc_List() libsrc/bpo_proc.c
  Get_My_Proc_Details() libsrc/bpo_proc_me.c
  Get_SODB_Offset() libsrc/bpo_init.c
  Get_SODB_Privs() libsrc/bpo_init.c
  bpo_Find_Item_By_Name() libsrc/bpo_l_010.c
  bpo_Init_List() libsrc/bpo_l_002.c
  bpo_Init_Node() libsrc/bpo_l_001.c
  bpo_Work_List2() libsrc/bpo_l_021.c
  bpo_strdup_offset() libsrc/bpo_alloc.c
  fprintfile() libsrc/fprintfile.c
  gen_pid_str() libsrc/pidstr.c
  get_private_flag() libsrc/cfg_f_015.c
  init_pid_stuff() libsrc/bpo_proc.c
  shalloc() libsrc/bpo_alloc.c
  getpid(), strcpy(), time()
Called by: mpCreateQ() libsrc/bpo_queue.c
References Functions: add_to_work_list() libsrc/bpo_proc.c
References Variables: bpo_proc_debug libsrc/bpo_proc.c
  proc_debug_str libsrc/bpo_proc.c

Global Function Remove_Shm_Process()

int Remove_Shm_Process ( const void* hint, const char* pid_str )
Prototyped in: mplib1/bpo_proc.h
Calls: Find_Proc_List() libsrc/bpo_proc.c
  Get_SODB_Base() libsrc/bpo_init.c
  bpo_Work_List() libsrc/bpo_l_020.c
  bpo_free_list_contents() libsrc/bpo_l_026.c
  shfree() libsrc/bpo_alloc.c
  shfree_off() libsrc/bpo_proc.c
Called by: Deregister_Process_Details() libsrc/bpo_proc.c
  shm_check_proc() libsrc/bpo_val_proc.c
References Functions: remove_proc() libsrc/bpo_proc.c

Local Function add_this_to_cache()

static int add_this_to_cache ( struct shm_process* spp, struct cache_proc_list* cpl )
Calls: alloc_private_process() libsrc/bpo_proc_me.c
  dl_Add_Tail() libsrc/dl_l_008.c
  dl_Find_Item_By_Name() libsrc/dl_l_009.c
  dl_Remove_Node() libsrc/dl_l_002.c
  fprintfile() libsrc/fprintfile.c
Used in: cache_some_list() libsrc/bpo_proc.c
References Variables: bpo_proc_debug libsrc/bpo_proc.c

Local Function add_to_work_list()

static int add_to_work_list ( bpo_List_t* blp, struct shm_proc_list* splp, struct shm_process* spp )
Calls: bpo_Add_Tail() libsrc/bpo_l_009.c
  time()
Used in: Register_Process_Details() libsrc/bpo_proc.c

Local Function cache_procs()

static struct cache_proc_list* cache_procs ( struct shm_proc_list* splp )
Calls: bpo_May_Work_List() libsrc/bpo_l_022.c
  dl_Add_Tail() libsrc/dl_l_008.c
  dl_Find_Item_By_Name() libsrc/dl_l_009.c
  dl_Init_List() libsrc/dl_l_001.c
  dl_Init_Node() libsrc/dl_l_001.c
  fprintfile() libsrc/fprintfile.c
  malloc(), sprintf(), strcpy()
Called by: Get_Cache_Procs() libsrc/bpo_proc.c
  Inform_Process_Str() libsrc/bpo_proc.c
References Functions: cache_some_list() libsrc/bpo_proc.c
References Variables: bpo_proc_debug libsrc/bpo_proc.c
  cached_procs libsrc/bpo_proc.c

Local Function cache_some_list()

static int cache_some_list ( bpo_List_t* blp, struct cache_proc_list* cpl )
Calls: bpo_Walk_List() libsrc/bpo_l_016.c
  dl_Add_Tail() libsrc/dl_l_008.c
  dl_Remove_Head_Item() libsrc/dl_l_012.c
  dl_Walk_List() libsrc/dl_l_014.c
Used in: cache_procs() libsrc/bpo_proc.c
References Functions: add_this_to_cache() libsrc/bpo_proc.c
  free_private_process() libsrc/bpo_proc_me.c

Local Function inform_lpp()

static int inform_lpp ( struct shm_process_private* lpp )
Calls: fprintfile() libsrc/fprintfile.c
  inform_this_pipe() libsrc/bpo_proc.c
  is_pid_dead() libsrc/pidstr.c
Called by: Inform_Process_Str() libsrc/bpo_proc.c
References Variables: bpo_proc_debug libsrc/bpo_proc.c

Local Function inform_this_pipe()

static int inform_this_pipe ( const char* pipe_name )
Calls: __errno_location(), close(), free(), open(), strcmp(), strdup(), write()
Called by: Inform_Named_Pipe() libsrc/bpo_proc.c
  inform_lpp() libsrc/bpo_proc.c

Local Function init_pid_stuff()

static void init_pid_stuff ( void )
Calls: dl_Init_List() libsrc/dl_l_001.c
  getpid()
Called by: Add_This_Pid_Resource() libsrc/bpo_proc.c
  Deregister_Process_Details() libsrc/bpo_proc.c
  Find_Proc_List() libsrc/bpo_proc.c
  Get_Cache_Procs() libsrc/bpo_proc.c
  Inform_Process_Str() libsrc/bpo_proc.c
  Register_Process_Details() libsrc/bpo_proc.c
References Variables: cached_procs libsrc/bpo_proc.c
  my_pid libsrc/bpo_proc.c

Local Function remove_proc()

static int remove_proc ( bpo_List_t* blp, struct proc_man* pmp )
Calls: bpo_Find_Item_By_Name() libsrc/bpo_l_010.c
  bpo_Remove_Node() libsrc/bpo_l_003.c
Used in: Remove_Shm_Process() libsrc/bpo_proc.c

Local Function shfree_off()

static void shfree_off ( void* base, off_t* offtp )
Calls: shfree() libsrc/bpo_alloc.c
Called by: Remove_Shm_Process() libsrc/bpo_proc.c