mmapper_kern.c (2fc2991175bf77395e6b15fe6b2304d3bf72da40) mmapper_kern.c (5e7672ec3f059f764fcc5c78216e24bb16c44dba)
1/*
2 * arch/um/drivers/mmapper_kern.c
3 *
4 * BRIEF MODULE DESCRIPTION
5 *
6 * Copyright (C) 2000 RidgeRun, Inc.
7 * Author: RidgeRun, Inc.
8 * Greg Lonnon glonnon@ridgerun.com or info@ridgerun.com

--- 71 unchanged lines hidden (view full) ---

80}
81
82static int
83mmapper_release(struct inode *inode, struct file *file)
84{
85 return 0;
86}
87
1/*
2 * arch/um/drivers/mmapper_kern.c
3 *
4 * BRIEF MODULE DESCRIPTION
5 *
6 * Copyright (C) 2000 RidgeRun, Inc.
7 * Author: RidgeRun, Inc.
8 * Greg Lonnon glonnon@ridgerun.com or info@ridgerun.com

--- 71 unchanged lines hidden (view full) ---

80}
81
82static int
83mmapper_release(struct inode *inode, struct file *file)
84{
85 return 0;
86}
87
88static struct file_operations mmapper_fops = {
88static const struct file_operations mmapper_fops = {
89 .owner = THIS_MODULE,
90 .read = mmapper_read,
91 .write = mmapper_write,
92 .ioctl = mmapper_ioctl,
93 .mmap = mmapper_mmap,
94 .open = mmapper_open,
95 .release = mmapper_release,
96};
97
89 .owner = THIS_MODULE,
90 .read = mmapper_read,
91 .write = mmapper_write,
92 .ioctl = mmapper_ioctl,
93 .mmap = mmapper_mmap,
94 .open = mmapper_open,
95 .release = mmapper_release,
96};
97
98static struct miscdevice mmapper_dev = {
98static const struct miscdevice mmapper_dev = {
99 .minor = MISC_DYNAMIC_MINOR,
100 .name = "mmapper",
101 .fops = &mmapper_fops
102};
103
104static int __init mmapper_init(void)
105{
106 int err;

--- 37 unchanged lines hidden ---
99 .minor = MISC_DYNAMIC_MINOR,
100 .name = "mmapper",
101 .fops = &mmapper_fops
102};
103
104static int __init mmapper_init(void)
105{
106 int err;

--- 37 unchanged lines hidden ---