diff options
| author | zy <[email protected]> | 2023-12-19 22:29:11 -0500 |
|---|---|---|
| committer | zy <[email protected]> | 2023-12-19 22:29:11 -0500 |
| commit | 1f2335ec9fb4e981d5a99f37f3609facfbf60c69 (patch) | |
| tree | 7692466fb31be002a9aa64b014f214c9f17e7f89 /source/module/monitor_kernel.c | |
| parent | f2c70efbd56c62e75f449648e216fb6187265443 (diff) | |
reformat and rename
Diffstat (limited to 'source/module/monitor_kernel.c')
| -rw-r--r-- | source/module/monitor_kernel.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/source/module/monitor_kernel.c b/source/module/monitor_kernel.c index 22437aa..e7dc211 100644 --- a/source/module/monitor_kernel.c +++ b/source/module/monitor_kernel.c @@ -48,23 +48,6 @@ typedef struct { int id; } ioctl_id; -// dump log from buffer -static int dump_log(ioctl_dump_param *dump_param, unsigned long ioctl_param, - struct diag_variant_buffer *buffer) { - int ret = 0; - ret = copy_from_user(dump_param, (ioctl_dump_param *)ioctl_param, - sizeof(ioctl_dump_param)); - printk(KERN_INFO "dump_param: %p %lx %p\n", dump_param->user_ptr_len, - dump_param->user_buf_len, dump_param->user_buf); - if (!ret) { - ret = copy_to_user_variant_buffer(buffer, dump_param->user_ptr_len, - dump_param->user_buf, - dump_param->user_buf_len); - printk(KERN_INFO "ret %d, %lx\n", ret, dump_param->user_buf_len); - } - return ret; -} - static long device_ioctl(struct file *file, unsigned int ioctl_num, unsigned long ioctl_param) { int ret = 0; |
