kcapi.c (0ea5c948cb64bab5bc7a5516774eb8536f05aa0d) kcapi.c (91188544af06f1bed76fe71cb1caebd96c833eac)
1/* $Id: kcapi.c,v 1.1.2.8 2004/03/26 19:57:20 armin Exp $
2 *
3 * Kernel CAPI 2.0 Module
4 *
5 * Copyright 1999 by Carsten Paeth <calle@calle.de>
6 * Copyright 2002 by Kai Germaschewski <kai@germaschewski.name>
7 *
8 * This software may be used and distributed according to the terms

--- 903 unchanged lines hidden (view full) ---

912 return -ENOMEM;
913
914 err = cdebug_init();
915 if (err) {
916 destroy_workqueue(kcapi_wq);
917 return err;
918 }
919
1/* $Id: kcapi.c,v 1.1.2.8 2004/03/26 19:57:20 armin Exp $
2 *
3 * Kernel CAPI 2.0 Module
4 *
5 * Copyright 1999 by Carsten Paeth <calle@calle.de>
6 * Copyright 2002 by Kai Germaschewski <kai@germaschewski.name>
7 *
8 * This software may be used and distributed according to the terms

--- 903 unchanged lines hidden (view full) ---

912 return -ENOMEM;
913
914 err = cdebug_init();
915 if (err) {
916 destroy_workqueue(kcapi_wq);
917 return err;
918 }
919
920 kcapi_proc_init();
920 if (IS_ENABLED(CONFIG_PROC_FS))
921 kcapi_proc_init();
922
921 return 0;
922}
923
924void kcapi_exit(void)
925{
923 return 0;
924}
925
926void kcapi_exit(void)
927{
926 kcapi_proc_exit();
928 if (IS_ENABLED(CONFIG_PROC_FS))
929 kcapi_proc_exit();
927
928 cdebug_exit();
929 destroy_workqueue(kcapi_wq);
930}
930
931 cdebug_exit();
932 destroy_workqueue(kcapi_wq);
933}