random.c (3d5271f9883cba7b54762bc4fe027d4172f06db7) | random.c (5e7672ec3f059f764fcc5c78216e24bb16c44dba) |
---|---|
1/* Copyright (C) 2005 Jeff Dike <jdike@addtoit.com> */ 2/* Much of this ripped from drivers/char/hw_random.c, see there for other 3 * copyright. 4 * 5 * This software may be used and distributed according to the terms 6 * of the GNU General Public License, incorporated herein by reference. 7 */ 8#include <linux/module.h> --- 54 unchanged lines hidden (view full) --- 63 } 64 else return n; 65 if (signal_pending (current)) 66 return ret ? : -ERESTARTSYS; 67 } 68 return ret; 69} 70 | 1/* Copyright (C) 2005 Jeff Dike <jdike@addtoit.com> */ 2/* Much of this ripped from drivers/char/hw_random.c, see there for other 3 * copyright. 4 * 5 * This software may be used and distributed according to the terms 6 * of the GNU General Public License, incorporated herein by reference. 7 */ 8#include <linux/module.h> --- 54 unchanged lines hidden (view full) --- 63 } 64 else return n; 65 if (signal_pending (current)) 66 return ret ? : -ERESTARTSYS; 67 } 68 return ret; 69} 70 |
71static struct file_operations rng_chrdev_ops = { | 71static const struct file_operations rng_chrdev_ops = { |
72 .owner = THIS_MODULE, 73 .open = rng_dev_open, 74 .read = rng_dev_read, 75}; 76 77static struct miscdevice rng_miscdev = { 78 RNG_MISCDEV_MINOR, 79 RNG_MODULE_NAME, --- 47 unchanged lines hidden --- | 72 .owner = THIS_MODULE, 73 .open = rng_dev_open, 74 .read = rng_dev_read, 75}; 76 77static struct miscdevice rng_miscdev = { 78 RNG_MISCDEV_MINOR, 79 RNG_MODULE_NAME, --- 47 unchanged lines hidden --- |