From 849369d6c66d3054688672f97d31fceb8e8230fb Mon Sep 17 00:00:00 2001 From: root Date: Fri, 25 Dec 2015 04:40:36 +0000 Subject: initial_commit --- drivers/s390/char/sclp_cpi.c | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 drivers/s390/char/sclp_cpi.c (limited to 'drivers/s390/char/sclp_cpi.c') diff --git a/drivers/s390/char/sclp_cpi.c b/drivers/s390/char/sclp_cpi.c new file mode 100644 index 00000000..5716487b --- /dev/null +++ b/drivers/s390/char/sclp_cpi.c @@ -0,0 +1,41 @@ +/* + * drivers/s390/char/sclp_cpi.c + * SCLP control programm identification + * + * Copyright IBM Corp. 2001, 2007 + * Author(s): Martin Peschke + * Michael Ernst + */ + +#include +#include +#include +#include +#include "sclp_cpi_sys.h" + +MODULE_LICENSE("GPL"); +MODULE_DESCRIPTION("Identify this operating system instance " + "to the System z hardware"); +MODULE_AUTHOR("Martin Peschke , " + "Michael Ernst "); + +static char *system_name = ""; +static char *sysplex_name = ""; + +module_param(system_name, charp, 0); +MODULE_PARM_DESC(system_name, "e.g. hostname - max. 8 characters"); +module_param(sysplex_name, charp, 0); +MODULE_PARM_DESC(sysplex_name, "if applicable - max. 8 characters"); + +static int __init cpi_module_init(void) +{ + return sclp_cpi_set_data(system_name, sysplex_name, "LINUX", + LINUX_VERSION_CODE); +} + +static void __exit cpi_module_exit(void) +{ +} + +module_init(cpi_module_init); +module_exit(cpi_module_exit); -- cgit v1.2.3