configs.c (c74c120a21d87b0b6925ada5830d8cac21e852d9) | configs.c (c33fff0afbef4f0467c99e3f47ee7e98ae78c77e) |
---|---|
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 --- 65 unchanged lines hidden (view full) --- 74/***************************************************/ 75/* ikconfig_init: start up everything we need to */ 76 77static int __init ikconfig_init(void) 78{ 79 struct proc_dir_entry *entry; 80 81 /* create the current config file */ | 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 --- 65 unchanged lines hidden (view full) --- 74/***************************************************/ 75/* ikconfig_init: start up everything we need to */ 76 77static int __init ikconfig_init(void) 78{ 79 struct proc_dir_entry *entry; 80 81 /* create the current config file */ |
82 entry = create_proc_entry("config.gz", S_IFREG | S_IRUGO, NULL); | 82 entry = proc_create("config.gz", S_IFREG | S_IRUGO, NULL, 83 &ikconfig_file_ops); |
83 if (!entry) 84 return -ENOMEM; 85 | 84 if (!entry) 85 return -ENOMEM; 86 |
86 entry->proc_fops = &ikconfig_file_ops; | |
87 entry->size = kernel_config_data_size; 88 89 return 0; 90} 91 92/***************************************************/ 93/* ikconfig_cleanup: clean up our mess */ 94 --- 13 unchanged lines hidden --- | 87 entry->size = kernel_config_data_size; 88 89 return 0; 90} 91 92/***************************************************/ 93/* ikconfig_cleanup: clean up our mess */ 94 --- 13 unchanged lines hidden --- |