Subversion リポジトリの参照
Diff of /trunk/ccs-patch/fs/proc/ccs_proc.c
Parent Directory
| Revision Log
| Patch
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) |
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 |
|
|
| |