home *** CD-ROM | disk | FTP | other *** search
/ ftp.parl.clemson.edu / 2015-02-07.ftp.parl.clemson.edu.tar / ftp.parl.clemson.edu / pub / pvfs2 / orangefs-2.8.3-20110323.tar.gz / orangefs-2.8.3-20110323.tar / orangefs / src / client / sysint / finalize.c < prev    next >
C/C++ Source or Header  |  2010-03-08  |  2KB  |  86 lines

  1. /* 
  2.  * (C) 2001 Clemson University and The University of Chicago
  3.  *
  4.  * See COPYING in top-level directory.
  5.  */
  6.  
  7. /* System Interface Finalize Implementation */
  8. #ifdef HAVE_MALLOC_H
  9. #include <malloc.h>
  10. #endif
  11.  
  12. #include "pint-sysint-utils.h"
  13. #include "acache.h"
  14. #include "ncache.h"
  15. #include "gen-locks.h"
  16. #include "pint-cached-config.h"
  17. #include "pint-dist-utils.h"
  18. #include "trove.h"
  19. #include "server-config-mgr.h"
  20. #include "PINT-reqproto-encode.h"
  21. #include "client-state-machine.h"
  22. #include "src/server/request-scheduler/request-scheduler.h"
  23. #include "job-time-mgr.h"
  24. #include "pint-util.h"
  25. #include "pint-event.h"
  26.  
  27. extern job_context_id pint_client_sm_context;
  28.  
  29. extern PINT_smcb *g_smcb;
  30.  
  31. /* PVFS_finalize
  32.  *
  33.  * shuts down the PVFS system interface
  34.  *
  35.  * returns 0 on success, -errno on failure
  36.  */
  37. int PVFS_sys_finalize()
  38. {
  39.     id_gen_safe_finalize();
  40.  
  41.     PINT_util_digest_finalize();
  42.     PINT_ncache_finalize();
  43.     PINT_acache_finalize();
  44.     PINT_cached_config_finalize();
  45.  
  46.     /* flush all known server configurations */
  47.     PINT_server_config_mgr_finalize();
  48.  
  49.     /* finalize the I/O interfaces */
  50.     job_time_mgr_finalize();
  51.     job_close_context(pint_client_sm_context);
  52.     job_finalize();
  53.  
  54.     PINT_flow_finalize();
  55.  
  56.     PINT_req_sched_finalize();
  57.  
  58.     /* release timer_queue resources, if there are any */
  59.     PINT_timer_queue_finalize();
  60.  
  61.     BMI_finalize();
  62.  
  63.     PINT_encode_finalize();
  64.  
  65.     PINT_dist_finalize();
  66.  
  67.     PINT_event_finalize();
  68.  
  69.     PINT_release_pvfstab();
  70.  
  71.     gossip_disable();
  72.  
  73.     PINT_client_state_machine_release(g_smcb);
  74.  
  75.     return 0;
  76. }
  77.  
  78. /*
  79.  * Local variables:
  80.  *  c-indent-level: 4
  81.  *  c-basic-offset: 4
  82.  * End:
  83.  *
  84.  * vim: ts=8 sts=4 sw=4 expandtab
  85.  */
  86.