sclp_cpi.c 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * SCLP control programm identification
  3. *
  4. * Copyright IBM Corp. 2001, 2007
  5. * Author(s): Martin Peschke <mpeschke@de.ibm.com>
  6. * Michael Ernst <mernst@de.ibm.com>
  7. */
  8. #include <linux/kmod.h>
  9. #include <linux/module.h>
  10. #include <linux/moduleparam.h>
  11. #include <linux/version.h>
  12. #include "sclp_cpi_sys.h"
  13. MODULE_LICENSE("GPL");
  14. MODULE_DESCRIPTION("Identify this operating system instance "
  15. "to the System z hardware");
  16. MODULE_AUTHOR("Martin Peschke <mpeschke@de.ibm.com>, "
  17. "Michael Ernst <mernst@de.ibm.com>");
  18. static char *system_name = "";
  19. static char *sysplex_name = "";
  20. module_param(system_name, charp, 0);
  21. MODULE_PARM_DESC(system_name, "e.g. hostname - max. 8 characters");
  22. module_param(sysplex_name, charp, 0);
  23. MODULE_PARM_DESC(sysplex_name, "if applicable - max. 8 characters");
  24. static int __init cpi_module_init(void)
  25. {
  26. return sclp_cpi_set_data(system_name, sysplex_name, "LINUX",
  27. LINUX_VERSION_CODE);
  28. }
  29. static void __exit cpi_module_exit(void)
  30. {
  31. }
  32. module_init(cpi_module_init);
  33. module_exit(cpi_module_exit);