オープンソース・ソフトウェアの開発とダウンロード

Subversion リポジトリの参照

Diff of /trunk/ccs-patch/fs/proc/ccs_proc.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 119 by kumaneko, Wed Feb 28 11:45:08 2007 UTC revision 120 by kumaneko, Thu Mar 8 13:55:18 2007 UTC
# Line 33  static inline struct proc_dir_entry *PDE Line 33  static inline struct proc_dir_entry *PDE
33    
34  static int ccs_open(struct inode *inode, struct file *file)  static int ccs_open(struct inode *inode, struct file *file)
35  {  {
36          return CCS_OpenControl((const int) (PDE(inode)->data), file);          return CCS_OpenControl(((u8 *) PDE(inode)->data) - ((u8 *) NULL), file);
37  }  }
38    
39  static int ccs_release(struct inode *inode, struct file *file)  static int ccs_release(struct inode *inode, struct file *file)
# Line 69  static __init void CreateEntry(const cha Line 69  static __init void CreateEntry(const cha
69          struct proc_dir_entry *entry = create_proc_entry(name, mode, parent);          struct proc_dir_entry *entry = create_proc_entry(name, mode, parent);
70          if (entry) {          if (entry) {
71                  entry->proc_fops = &ccs_operations;                  entry->proc_fops = &ccs_operations;
72                  entry->data = (void *) key;                  entry->data = ((u8 *) NULL) + key;
73          }          }
74  }  }
75    

Legend:
Removed from v.119  
changed lines
  Added in v.120

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26