- Timestamp:
- 10/02/13 15:59:20 (11 years ago)
- Location:
- ksyslog/trunk
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ksyslog/trunk/ksyslog.c
r245 r246 5 5 */ 6 6 7 #include <linux/version.h> 7 8 #include <linux/module.h> 8 9 #include <linux/inet.h> … … 10 11 #include <linux/udp.h> 11 12 #include <linux/namei.h> 13 #include <linux/proc_fs.h> 12 14 #include <net/udp.h> 15 #include "compat.h" 13 16 #include "ksyslog.h" 14 17 … … 443 446 444 447 if (!err) 445 ((struct seq_file *)file->private_data)->private = PDE (inode)->data;448 ((struct seq_file *)file->private_data)->private = PDE_DATA(inode); 446 449 447 450 return err; … … 466 469 ksyslog_nr_queued_seq_open(struct inode *inode, struct file *file) 467 470 { 468 return single_open(file, ksyslog_nr_queued_seq_show, PDE (inode)->data);471 return single_open(file, ksyslog_nr_queued_seq_show, PDE_DATA(inode)); 469 472 } 470 473 … … 479 482 ksyslog_nr_written_seq_open(struct inode *inode, struct file *file) 480 483 { 481 return single_open(file, ksyslog_nr_written_seq_show, PDE (inode)->data);484 return single_open(file, ksyslog_nr_written_seq_show, PDE_DATA(inode)); 482 485 } 483 486 … … 492 495 ksyslog_nr_dropped_seq_open(struct inode *inode, struct file *file) 493 496 { 494 return single_open(file, ksyslog_nr_dropped_seq_show, PDE (inode)->data);497 return single_open(file, ksyslog_nr_dropped_seq_show, PDE_DATA(inode)); 495 498 } 496 499 … … 523 526 { 524 527 if (ksyslog_proc_queue) 525 remove_proc_entry( ksyslog_proc_queue->name, ksyslog_proc_queue->parent);528 remove_proc_entry("queue", ksyslog_procdir); 526 529 ksyslog_proc_queue = NULL; 527 530 528 531 if (ksyslog_proc_nr_queued) 529 remove_proc_entry( ksyslog_proc_nr_queued->name, ksyslog_proc_nr_queued->parent);532 remove_proc_entry("nr_queued", ksyslog_procdir); 530 533 ksyslog_proc_nr_queued = NULL; 531 534 532 535 if (ksyslog_proc_nr_written) 533 remove_proc_entry( ksyslog_proc_nr_written->name, ksyslog_proc_nr_written->parent);536 remove_proc_entry("nr_written", ksyslog_procdir); 534 537 ksyslog_proc_nr_written = NULL; 535 538 536 539 if (ksyslog_proc_nr_dropped) 537 remove_proc_entry( ksyslog_proc_nr_dropped->name, ksyslog_proc_nr_dropped->parent);540 remove_proc_entry("nr_dropped", ksyslog_procdir); 538 541 ksyslog_proc_nr_dropped = NULL; 539 542 540 543 if (ksyslog_procdir) 541 remove_proc_entry( ksyslog_procdir->name, ksyslog_procdir->parent);544 remove_proc_entry("ksyslog", NULL); 542 545 ksyslog_procdir = NULL; 543 546 } -
ksyslog/trunk/ksyslog.h
r243 r246 9 9 10 10 #define UDP_ENCAP_KSYSLOG 16 11 12 #ifndef __list_for_each_rcu13 #define __list_for_each_rcu(pos, head) \14 for (pos = rcu_dereference_raw(list_next_rcu(head)); \15 pos != (head); \16 pos = rcu_dereference_raw(list_next_rcu(pos)))17 #endif18 11 19 12 enum ksyslog_facility {
Note: See TracChangeset
for help on using the changeset viewer.