scsi_sysctl.c (01879db3f0f8205e04fbce06062349f258469247) scsi_sysctl.c (0b4d414714f0d2f922d39424b0c5c82ad900a381)
1/*
2 * Copyright (C) 2003 Christoph Hellwig.
3 * Released under GPL v2.
4 */
5
6#include <linux/errno.h>
7#include <linux/init.h>
8#include <linux/kernel.h>

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

36 .child = scsi_dir_table },
37 { }
38};
39
40static struct ctl_table_header *scsi_table_header;
41
42int __init scsi_init_sysctl(void)
43{
1/*
2 * Copyright (C) 2003 Christoph Hellwig.
3 * Released under GPL v2.
4 */
5
6#include <linux/errno.h>
7#include <linux/init.h>
8#include <linux/kernel.h>

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

36 .child = scsi_dir_table },
37 { }
38};
39
40static struct ctl_table_header *scsi_table_header;
41
42int __init scsi_init_sysctl(void)
43{
44 scsi_table_header = register_sysctl_table(scsi_root_table, 0);
44 scsi_table_header = register_sysctl_table(scsi_root_table);
45 if (!scsi_table_header)
46 return -ENOMEM;
47 return 0;
48}
49
50void scsi_exit_sysctl(void)
51{
52 unregister_sysctl_table(scsi_table_header);
53}
45 if (!scsi_table_header)
46 return -ENOMEM;
47 return 0;
48}
49
50void scsi_exit_sysctl(void)
51{
52 unregister_sysctl_table(scsi_table_header);
53}