configs.c (05668381140309088443bf5dc53add4104610fbb) configs.c (15ad7cdcfd76450d4beebc789ec646664238184d)
1/*
2 * kernel/configs.c
3 * Echo the kernel .config file used to build the kernel
4 *
5 * Copyright (C) 2002 Khalid Aziz <khalid_aziz@hp.com>
6 * Copyright (C) 2002 Randy Dunlap <rdunlap@xenotime.net>
7 * Copyright (C) 2002 Al Stone <ahs3@fc.hp.com>
8 * Copyright (C) 2002 Hewlett-Packard Company

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

70 count = min(len, (size_t)(kernel_config_data_size - pos));
71 if (copy_to_user(buf, kernel_config_data + MAGIC_SIZE + pos, count))
72 return -EFAULT;
73
74 *offset += count;
75 return count;
76}
77
1/*
2 * kernel/configs.c
3 * Echo the kernel .config file used to build the kernel
4 *
5 * Copyright (C) 2002 Khalid Aziz <khalid_aziz@hp.com>
6 * Copyright (C) 2002 Randy Dunlap <rdunlap@xenotime.net>
7 * Copyright (C) 2002 Al Stone <ahs3@fc.hp.com>
8 * Copyright (C) 2002 Hewlett-Packard Company

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

70 count = min(len, (size_t)(kernel_config_data_size - pos));
71 if (copy_to_user(buf, kernel_config_data + MAGIC_SIZE + pos, count))
72 return -EFAULT;
73
74 *offset += count;
75 return count;
76}
77
78static struct file_operations ikconfig_file_ops = {
78static const struct file_operations ikconfig_file_ops = {
79 .owner = THIS_MODULE,
80 .read = ikconfig_read_current,
81};
82
83/***************************************************/
84/* ikconfig_init: start up everything we need to */
85
86static int __init ikconfig_init(void)

--- 31 unchanged lines hidden ---
79 .owner = THIS_MODULE,
80 .read = ikconfig_read_current,
81};
82
83/***************************************************/
84/* ikconfig_init: start up everything we need to */
85
86static int __init ikconfig_init(void)

--- 31 unchanged lines hidden ---