mon_text.c (8e18e2941c53416aa219708e7dcad21fb4bd6794) | mon_text.c (066202dd48cf3296b6cc22b5fcf89aef33fa0efc) |
---|---|
1/* 2 * The USB Monitor, inspired by Dave Harding's USBMon. 3 * 4 * This is a text format reader. 5 */ 6 7#include <linux/kernel.h> 8#include <linux/list.h> --- 421 unchanged lines hidden (view full) --- 430 kmem_cache_destroy(rp->e_slab); 431 kfree(rp->printf_buf); 432 kfree(rp); 433 434 mutex_unlock(&mon_lock); 435 return 0; 436} 437 | 1/* 2 * The USB Monitor, inspired by Dave Harding's USBMon. 3 * 4 * This is a text format reader. 5 */ 6 7#include <linux/kernel.h> 8#include <linux/list.h> --- 421 unchanged lines hidden (view full) --- 430 kmem_cache_destroy(rp->e_slab); 431 kfree(rp->printf_buf); 432 kfree(rp); 433 434 mutex_unlock(&mon_lock); 435 return 0; 436} 437 |
438struct file_operations mon_fops_text = { | 438const struct file_operations mon_fops_text = { |
439 .owner = THIS_MODULE, 440 .open = mon_text_open, 441 .llseek = no_llseek, 442 .read = mon_text_read, 443 /* .write = mon_text_write, */ 444 /* .poll = mon_text_poll, */ 445 /* .ioctl = mon_text_ioctl, */ 446 .release = mon_text_release, --- 14 unchanged lines hidden --- | 439 .owner = THIS_MODULE, 440 .open = mon_text_open, 441 .llseek = no_llseek, 442 .read = mon_text_read, 443 /* .write = mon_text_write, */ 444 /* .poll = mon_text_poll, */ 445 /* .ioctl = mon_text_ioctl, */ 446 .release = mon_text_release, --- 14 unchanged lines hidden --- |