static int device_release(struct inode *inode, struct file *file)
{
gl_nDeviceOpened--;
- EPRINTF("++ pre module_put");
module_put(THIS_MODULE);
- EPRINTF("++ aft module_put");
+
return 0;
}
}
DPRINTF("Bundle has been copied successfully");
-// last_error_buffer_initialize();
-
-// printk(" --++@@ bef lb\n");
if (link_bundle() == -1 || has_last_error() == -1) {
EPRINTF("Cannot link profile bundle!");
result = -1;
break;
}
-// printk(" --++@@ bef has_last_error\n");
-// if (has_last_error() == -1) {
-// printk(" --++@@ in if\n");
-// DPRINTF("last_error_buffer != NULL");
-// result = -1;
-// }
-// printk(" --++@@ aft has_last_error\n");
break;
}
static struct errno_struct *last_error = NULL;
-void last_error_buffer_initialize(void)
-{
- last_error = NULL;
-}
-
static int create_errno_buffer(void)
{
struct errno_struct *error = NULL;
int get_last_error(void* u_addr);
int has_last_error(void);
int update_errno_buffer(const char *buffer);
-void last_error_buffer_initialize(void);
#include "event_tmpl.h"
#include "error_storage.h"
-//extern int update_errno_buffer(const char *buffer);
-//extern int get_last_error(void* u_addr);
-//extern int has_last_error(void);
-//extern void last_error_buffer_initialize(void);
-///////////////////////////////////////////////////////////////////////////////////////////////////
-
extern int EnableContinuousRetrieval(void);
extern int DisableContinuousRetrieval(void);