PageRenderTime 21ms CodeModel.GetById 19ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 0ms

/drivers/s390/char/sclp_cpi.c

https://bitbucket.org/cyanogenmod/android_kernel_asus_tf300t
C | 41 lines | 26 code | 7 blank | 8 comment | 0 complexity | 1b39cc09d7ee792aed643cbda312fa04 MD5 | raw file
Possible License(s): LGPL-2.0, AGPL-1.0, GPL-2.0
 1/*
 2 *  drivers/s390/char/sclp_cpi.c
 3 *    SCLP control programm identification
 4 *
 5 *    Copyright IBM Corp. 2001, 2007
 6 *    Author(s): Martin Peschke <mpeschke@de.ibm.com>
 7 *		 Michael Ernst <mernst@de.ibm.com>
 8 */
 9
10#include <linux/kmod.h>
11#include <linux/module.h>
12#include <linux/moduleparam.h>
13#include <linux/version.h>
14#include "sclp_cpi_sys.h"
15
16MODULE_LICENSE("GPL");
17MODULE_DESCRIPTION("Identify this operating system instance "
18		   "to the System z hardware");
19MODULE_AUTHOR("Martin Peschke <mpeschke@de.ibm.com>, "
20	      "Michael Ernst <mernst@de.ibm.com>");
21
22static char *system_name = "";
23static char *sysplex_name = "";
24
25module_param(system_name, charp, 0);
26MODULE_PARM_DESC(system_name, "e.g. hostname - max. 8 characters");
27module_param(sysplex_name, charp, 0);
28MODULE_PARM_DESC(sysplex_name, "if applicable - max. 8 characters");
29
30static int __init cpi_module_init(void)
31{
32	return sclp_cpi_set_data(system_name, sysplex_name, "LINUX",
33				 LINUX_VERSION_CODE);
34}
35
36static void __exit cpi_module_exit(void)
37{
38}
39
40module_init(cpi_module_init);
41module_exit(cpi_module_exit);