monreader.c 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647
  1. /*
  2. * Character device driver for reading z/VM *MONITOR service records.
  3. *
  4. * Copyright IBM Corp. 2004, 2009
  5. *
  6. * Author: Gerald Schaefer <gerald.schaefer@de.ibm.com>
  7. */
  8. #define KMSG_COMPONENT "monreader"
  9. #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
  10. #include <linux/module.h>
  11. #include <linux/moduleparam.h>
  12. #include <linux/init.h>
  13. #include <linux/errno.h>
  14. #include <linux/types.h>
  15. #include <linux/kernel.h>
  16. #include <linux/miscdevice.h>
  17. #include <linux/ctype.h>
  18. #include <linux/spinlock.h>
  19. #include <linux/interrupt.h>
  20. #include <linux/poll.h>
  21. #include <linux/device.h>
  22. #include <net/iucv/iucv.h>
  23. #include <asm/uaccess.h>
  24. #include <asm/ebcdic.h>
  25. #include <asm/extmem.h>
  26. #define MON_COLLECT_SAMPLE 0x80
  27. #define MON_COLLECT_EVENT 0x40
  28. #define MON_SERVICE "*MONITOR"
  29. #define MON_IN_USE 0x01
  30. #define MON_MSGLIM 255
  31. static char mon_dcss_name[9] = "MONDCSS\0";
  32. struct mon_msg {
  33. u32 pos;
  34. u32 mca_offset;
  35. struct iucv_message msg;
  36. char msglim_reached;
  37. char replied_msglim;
  38. };
  39. struct mon_private {
  40. struct iucv_path *path;
  41. struct mon_msg *msg_array[MON_MSGLIM];
  42. unsigned int write_index;
  43. unsigned int read_index;
  44. atomic_t msglim_count;
  45. atomic_t read_ready;
  46. atomic_t iucv_connected;
  47. atomic_t iucv_severed;
  48. };
  49. static unsigned long mon_in_use = 0;
  50. static unsigned long mon_dcss_start;
  51. static unsigned long mon_dcss_end;
  52. static DECLARE_WAIT_QUEUE_HEAD(mon_read_wait_queue);
  53. static DECLARE_WAIT_QUEUE_HEAD(mon_conn_wait_queue);
  54. static u8 user_data_connect[16] = {
  55. /* Version code, must be 0x01 for shared mode */
  56. 0x01,
  57. /* what to collect */
  58. MON_COLLECT_SAMPLE | MON_COLLECT_EVENT,
  59. /* DCSS name in EBCDIC, 8 bytes padded with blanks */
  60. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  61. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  62. };
  63. static u8 user_data_sever[16] = {
  64. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  65. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  66. };
  67. static struct device *monreader_device;
  68. /******************************************************************************
  69. * helper functions *
  70. *****************************************************************************/
  71. /*
  72. * Create the 8 bytes EBCDIC DCSS segment name from
  73. * an ASCII name, incl. padding
  74. */
  75. static void dcss_mkname(char *ascii_name, char *ebcdic_name)
  76. {
  77. int i;
  78. for (i = 0; i < 8; i++) {
  79. if (ascii_name[i] == '\0')
  80. break;
  81. ebcdic_name[i] = toupper(ascii_name[i]);
  82. };
  83. for (; i < 8; i++)
  84. ebcdic_name[i] = ' ';
  85. ASCEBC(ebcdic_name, 8);
  86. }
  87. static inline unsigned long mon_mca_start(struct mon_msg *monmsg)
  88. {
  89. return *(u32 *) &monmsg->msg.rmmsg;
  90. }
  91. static inline unsigned long mon_mca_end(struct mon_msg *monmsg)
  92. {
  93. return *(u32 *) &monmsg->msg.rmmsg[4];
  94. }
  95. static inline u8 mon_mca_type(struct mon_msg *monmsg, u8 index)
  96. {
  97. return *((u8 *) mon_mca_start(monmsg) + monmsg->mca_offset + index);
  98. }
  99. static inline u32 mon_mca_size(struct mon_msg *monmsg)
  100. {
  101. return mon_mca_end(monmsg) - mon_mca_start(monmsg) + 1;
  102. }
  103. static inline u32 mon_rec_start(struct mon_msg *monmsg)
  104. {
  105. return *((u32 *) (mon_mca_start(monmsg) + monmsg->mca_offset + 4));
  106. }
  107. static inline u32 mon_rec_end(struct mon_msg *monmsg)
  108. {
  109. return *((u32 *) (mon_mca_start(monmsg) + monmsg->mca_offset + 8));
  110. }
  111. static int mon_check_mca(struct mon_msg *monmsg)
  112. {
  113. if ((mon_rec_end(monmsg) <= mon_rec_start(monmsg)) ||
  114. (mon_rec_start(monmsg) < mon_dcss_start) ||
  115. (mon_rec_end(monmsg) > mon_dcss_end) ||
  116. (mon_mca_type(monmsg, 0) == 0) ||
  117. (mon_mca_size(monmsg) % 12 != 0) ||
  118. (mon_mca_end(monmsg) <= mon_mca_start(monmsg)) ||
  119. (mon_mca_end(monmsg) > mon_dcss_end) ||
  120. (mon_mca_start(monmsg) < mon_dcss_start) ||
  121. ((mon_mca_type(monmsg, 1) == 0) && (mon_mca_type(monmsg, 2) == 0)))
  122. return -EINVAL;
  123. return 0;
  124. }
  125. static int mon_send_reply(struct mon_msg *monmsg,
  126. struct mon_private *monpriv)
  127. {
  128. int rc;
  129. rc = iucv_message_reply(monpriv->path, &monmsg->msg,
  130. IUCV_IPRMDATA, NULL, 0);
  131. atomic_dec(&monpriv->msglim_count);
  132. if (likely(!monmsg->msglim_reached)) {
  133. monmsg->pos = 0;
  134. monmsg->mca_offset = 0;
  135. monpriv->read_index = (monpriv->read_index + 1) %
  136. MON_MSGLIM;
  137. atomic_dec(&monpriv->read_ready);
  138. } else
  139. monmsg->replied_msglim = 1;
  140. if (rc) {
  141. pr_err("Reading monitor data failed with rc=%i\n", rc);
  142. return -EIO;
  143. }
  144. return 0;
  145. }
  146. static void mon_free_mem(struct mon_private *monpriv)
  147. {
  148. int i;
  149. for (i = 0; i < MON_MSGLIM; i++)
  150. if (monpriv->msg_array[i])
  151. kfree(monpriv->msg_array[i]);
  152. kfree(monpriv);
  153. }
  154. static struct mon_private *mon_alloc_mem(void)
  155. {
  156. int i;
  157. struct mon_private *monpriv;
  158. monpriv = kzalloc(sizeof(struct mon_private), GFP_KERNEL);
  159. if (!monpriv)
  160. return NULL;
  161. for (i = 0; i < MON_MSGLIM; i++) {
  162. monpriv->msg_array[i] = kzalloc(sizeof(struct mon_msg),
  163. GFP_KERNEL);
  164. if (!monpriv->msg_array[i]) {
  165. mon_free_mem(monpriv);
  166. return NULL;
  167. }
  168. }
  169. return monpriv;
  170. }
  171. static inline void mon_next_mca(struct mon_msg *monmsg)
  172. {
  173. if (likely((mon_mca_size(monmsg) - monmsg->mca_offset) == 12))
  174. return;
  175. monmsg->mca_offset += 12;
  176. monmsg->pos = 0;
  177. }
  178. static struct mon_msg *mon_next_message(struct mon_private *monpriv)
  179. {
  180. struct mon_msg *monmsg;
  181. if (!atomic_read(&monpriv->read_ready))
  182. return NULL;
  183. monmsg = monpriv->msg_array[monpriv->read_index];
  184. if (unlikely(monmsg->replied_msglim)) {
  185. monmsg->replied_msglim = 0;
  186. monmsg->msglim_reached = 0;
  187. monmsg->pos = 0;
  188. monmsg->mca_offset = 0;
  189. monpriv->read_index = (monpriv->read_index + 1) %
  190. MON_MSGLIM;
  191. atomic_dec(&monpriv->read_ready);
  192. return ERR_PTR(-EOVERFLOW);
  193. }
  194. return monmsg;
  195. }
  196. /******************************************************************************
  197. * IUCV handler *
  198. *****************************************************************************/
  199. static void mon_iucv_path_complete(struct iucv_path *path, u8 ipuser[16])
  200. {
  201. struct mon_private *monpriv = path->private;
  202. atomic_set(&monpriv->iucv_connected, 1);
  203. wake_up(&mon_conn_wait_queue);
  204. }
  205. static void mon_iucv_path_severed(struct iucv_path *path, u8 ipuser[16])
  206. {
  207. struct mon_private *monpriv = path->private;
  208. pr_err("z/VM *MONITOR system service disconnected with rc=%i\n",
  209. ipuser[0]);
  210. iucv_path_sever(path, NULL);
  211. atomic_set(&monpriv->iucv_severed, 1);
  212. wake_up(&mon_conn_wait_queue);
  213. wake_up_interruptible(&mon_read_wait_queue);
  214. }
  215. static void mon_iucv_message_pending(struct iucv_path *path,
  216. struct iucv_message *msg)
  217. {
  218. struct mon_private *monpriv = path->private;
  219. memcpy(&monpriv->msg_array[monpriv->write_index]->msg,
  220. msg, sizeof(*msg));
  221. if (atomic_inc_return(&monpriv->msglim_count) == MON_MSGLIM) {
  222. pr_warning("The read queue for monitor data is full\n");
  223. monpriv->msg_array[monpriv->write_index]->msglim_reached = 1;
  224. }
  225. monpriv->write_index = (monpriv->write_index + 1) % MON_MSGLIM;
  226. atomic_inc(&monpriv->read_ready);
  227. wake_up_interruptible(&mon_read_wait_queue);
  228. }
  229. static struct iucv_handler monreader_iucv_handler = {
  230. .path_complete = mon_iucv_path_complete,
  231. .path_severed = mon_iucv_path_severed,
  232. .message_pending = mon_iucv_message_pending,
  233. };
  234. /******************************************************************************
  235. * file operations *
  236. *****************************************************************************/
  237. static int mon_open(struct inode *inode, struct file *filp)
  238. {
  239. struct mon_private *monpriv;
  240. int rc;
  241. /*
  242. * only one user allowed
  243. */
  244. rc = -EBUSY;
  245. if (test_and_set_bit(MON_IN_USE, &mon_in_use))
  246. goto out;
  247. rc = -ENOMEM;
  248. monpriv = mon_alloc_mem();
  249. if (!monpriv)
  250. goto out_use;
  251. /*
  252. * Connect to *MONITOR service
  253. */
  254. monpriv->path = iucv_path_alloc(MON_MSGLIM, IUCV_IPRMDATA, GFP_KERNEL);
  255. if (!monpriv->path)
  256. goto out_priv;
  257. rc = iucv_path_connect(monpriv->path, &monreader_iucv_handler,
  258. MON_SERVICE, NULL, user_data_connect, monpriv);
  259. if (rc) {
  260. pr_err("Connecting to the z/VM *MONITOR system service "
  261. "failed with rc=%i\n", rc);
  262. rc = -EIO;
  263. goto out_path;
  264. }
  265. /*
  266. * Wait for connection confirmation
  267. */
  268. wait_event(mon_conn_wait_queue,
  269. atomic_read(&monpriv->iucv_connected) ||
  270. atomic_read(&monpriv->iucv_severed));
  271. if (atomic_read(&monpriv->iucv_severed)) {
  272. atomic_set(&monpriv->iucv_severed, 0);
  273. atomic_set(&monpriv->iucv_connected, 0);
  274. rc = -EIO;
  275. goto out_path;
  276. }
  277. filp->private_data = monpriv;
  278. dev_set_drvdata(monreader_device, monpriv);
  279. return nonseekable_open(inode, filp);
  280. out_path:
  281. iucv_path_free(monpriv->path);
  282. out_priv:
  283. mon_free_mem(monpriv);
  284. out_use:
  285. clear_bit(MON_IN_USE, &mon_in_use);
  286. out:
  287. return rc;
  288. }
  289. static int mon_close(struct inode *inode, struct file *filp)
  290. {
  291. int rc, i;
  292. struct mon_private *monpriv = filp->private_data;
  293. /*
  294. * Close IUCV connection and unregister
  295. */
  296. if (monpriv->path) {
  297. rc = iucv_path_sever(monpriv->path, user_data_sever);
  298. if (rc)
  299. pr_warning("Disconnecting the z/VM *MONITOR system "
  300. "service failed with rc=%i\n", rc);
  301. iucv_path_free(monpriv->path);
  302. }
  303. atomic_set(&monpriv->iucv_severed, 0);
  304. atomic_set(&monpriv->iucv_connected, 0);
  305. atomic_set(&monpriv->read_ready, 0);
  306. atomic_set(&monpriv->msglim_count, 0);
  307. monpriv->write_index = 0;
  308. monpriv->read_index = 0;
  309. dev_set_drvdata(monreader_device, NULL);
  310. for (i = 0; i < MON_MSGLIM; i++)
  311. kfree(monpriv->msg_array[i]);
  312. kfree(monpriv);
  313. clear_bit(MON_IN_USE, &mon_in_use);
  314. return 0;
  315. }
  316. static ssize_t mon_read(struct file *filp, char __user *data,
  317. size_t count, loff_t *ppos)
  318. {
  319. struct mon_private *monpriv = filp->private_data;
  320. struct mon_msg *monmsg;
  321. int ret;
  322. u32 mce_start;
  323. monmsg = mon_next_message(monpriv);
  324. if (IS_ERR(monmsg))
  325. return PTR_ERR(monmsg);
  326. if (!monmsg) {
  327. if (filp->f_flags & O_NONBLOCK)
  328. return -EAGAIN;
  329. ret = wait_event_interruptible(mon_read_wait_queue,
  330. atomic_read(&monpriv->read_ready) ||
  331. atomic_read(&monpriv->iucv_severed));
  332. if (ret)
  333. return ret;
  334. if (unlikely(atomic_read(&monpriv->iucv_severed)))
  335. return -EIO;
  336. monmsg = monpriv->msg_array[monpriv->read_index];
  337. }
  338. if (!monmsg->pos)
  339. monmsg->pos = mon_mca_start(monmsg) + monmsg->mca_offset;
  340. if (mon_check_mca(monmsg))
  341. goto reply;
  342. /* read monitor control element (12 bytes) first */
  343. mce_start = mon_mca_start(monmsg) + monmsg->mca_offset;
  344. if ((monmsg->pos >= mce_start) && (monmsg->pos < mce_start + 12)) {
  345. count = min(count, (size_t) mce_start + 12 - monmsg->pos);
  346. ret = copy_to_user(data, (void *) (unsigned long) monmsg->pos,
  347. count);
  348. if (ret)
  349. return -EFAULT;
  350. monmsg->pos += count;
  351. if (monmsg->pos == mce_start + 12)
  352. monmsg->pos = mon_rec_start(monmsg);
  353. goto out_copy;
  354. }
  355. /* read records */
  356. if (monmsg->pos <= mon_rec_end(monmsg)) {
  357. count = min(count, (size_t) mon_rec_end(monmsg) - monmsg->pos
  358. + 1);
  359. ret = copy_to_user(data, (void *) (unsigned long) monmsg->pos,
  360. count);
  361. if (ret)
  362. return -EFAULT;
  363. monmsg->pos += count;
  364. if (monmsg->pos > mon_rec_end(monmsg))
  365. mon_next_mca(monmsg);
  366. goto out_copy;
  367. }
  368. reply:
  369. ret = mon_send_reply(monmsg, monpriv);
  370. return ret;
  371. out_copy:
  372. *ppos += count;
  373. return count;
  374. }
  375. static unsigned int mon_poll(struct file *filp, struct poll_table_struct *p)
  376. {
  377. struct mon_private *monpriv = filp->private_data;
  378. poll_wait(filp, &mon_read_wait_queue, p);
  379. if (unlikely(atomic_read(&monpriv->iucv_severed)))
  380. return POLLERR;
  381. if (atomic_read(&monpriv->read_ready))
  382. return POLLIN | POLLRDNORM;
  383. return 0;
  384. }
  385. static const struct file_operations mon_fops = {
  386. .owner = THIS_MODULE,
  387. .open = &mon_open,
  388. .release = &mon_close,
  389. .read = &mon_read,
  390. .poll = &mon_poll,
  391. };
  392. static struct miscdevice mon_dev = {
  393. .name = "monreader",
  394. .fops = &mon_fops,
  395. .minor = MISC_DYNAMIC_MINOR,
  396. };
  397. /******************************************************************************
  398. * suspend / resume *
  399. *****************************************************************************/
  400. static int monreader_freeze(struct device *dev)
  401. {
  402. struct mon_private *monpriv = dev_get_drvdata(dev);
  403. int rc;
  404. if (!monpriv)
  405. return 0;
  406. if (monpriv->path) {
  407. rc = iucv_path_sever(monpriv->path, user_data_sever);
  408. if (rc)
  409. pr_warning("Disconnecting the z/VM *MONITOR system "
  410. "service failed with rc=%i\n", rc);
  411. iucv_path_free(monpriv->path);
  412. }
  413. atomic_set(&monpriv->iucv_severed, 0);
  414. atomic_set(&monpriv->iucv_connected, 0);
  415. atomic_set(&monpriv->read_ready, 0);
  416. atomic_set(&monpriv->msglim_count, 0);
  417. monpriv->write_index = 0;
  418. monpriv->read_index = 0;
  419. monpriv->path = NULL;
  420. return 0;
  421. }
  422. static int monreader_thaw(struct device *dev)
  423. {
  424. struct mon_private *monpriv = dev_get_drvdata(dev);
  425. int rc;
  426. if (!monpriv)
  427. return 0;
  428. rc = -ENOMEM;
  429. monpriv->path = iucv_path_alloc(MON_MSGLIM, IUCV_IPRMDATA, GFP_KERNEL);
  430. if (!monpriv->path)
  431. goto out;
  432. rc = iucv_path_connect(monpriv->path, &monreader_iucv_handler,
  433. MON_SERVICE, NULL, user_data_connect, monpriv);
  434. if (rc) {
  435. pr_err("Connecting to the z/VM *MONITOR system service "
  436. "failed with rc=%i\n", rc);
  437. goto out_path;
  438. }
  439. wait_event(mon_conn_wait_queue,
  440. atomic_read(&monpriv->iucv_connected) ||
  441. atomic_read(&monpriv->iucv_severed));
  442. if (atomic_read(&monpriv->iucv_severed))
  443. goto out_path;
  444. return 0;
  445. out_path:
  446. rc = -EIO;
  447. iucv_path_free(monpriv->path);
  448. monpriv->path = NULL;
  449. out:
  450. atomic_set(&monpriv->iucv_severed, 1);
  451. return rc;
  452. }
  453. static int monreader_restore(struct device *dev)
  454. {
  455. int rc;
  456. segment_unload(mon_dcss_name);
  457. rc = segment_load(mon_dcss_name, SEGMENT_SHARED,
  458. &mon_dcss_start, &mon_dcss_end);
  459. if (rc < 0) {
  460. segment_warning(rc, mon_dcss_name);
  461. panic("fatal monreader resume error: no monitor dcss\n");
  462. }
  463. return monreader_thaw(dev);
  464. }
  465. static const struct dev_pm_ops monreader_pm_ops = {
  466. .freeze = monreader_freeze,
  467. .thaw = monreader_thaw,
  468. .restore = monreader_restore,
  469. };
  470. static struct device_driver monreader_driver = {
  471. .name = "monreader",
  472. .bus = &iucv_bus,
  473. .pm = &monreader_pm_ops,
  474. };
  475. /******************************************************************************
  476. * module init/exit *
  477. *****************************************************************************/
  478. static int __init mon_init(void)
  479. {
  480. int rc;
  481. if (!MACHINE_IS_VM) {
  482. pr_err("The z/VM *MONITOR record device driver cannot be "
  483. "loaded without z/VM\n");
  484. return -ENODEV;
  485. }
  486. /*
  487. * Register with IUCV and connect to *MONITOR service
  488. */
  489. rc = iucv_register(&monreader_iucv_handler, 1);
  490. if (rc) {
  491. pr_err("The z/VM *MONITOR record device driver failed to "
  492. "register with IUCV\n");
  493. return rc;
  494. }
  495. rc = driver_register(&monreader_driver);
  496. if (rc)
  497. goto out_iucv;
  498. monreader_device = kzalloc(sizeof(struct device), GFP_KERNEL);
  499. if (!monreader_device)
  500. goto out_driver;
  501. dev_set_name(monreader_device, "monreader-dev");
  502. monreader_device->bus = &iucv_bus;
  503. monreader_device->parent = iucv_root;
  504. monreader_device->driver = &monreader_driver;
  505. monreader_device->release = (void (*)(struct device *))kfree;
  506. rc = device_register(monreader_device);
  507. if (rc) {
  508. put_device(monreader_device);
  509. goto out_driver;
  510. }
  511. rc = segment_type(mon_dcss_name);
  512. if (rc < 0) {
  513. segment_warning(rc, mon_dcss_name);
  514. goto out_device;
  515. }
  516. if (rc != SEG_TYPE_SC) {
  517. pr_err("The specified *MONITOR DCSS %s does not have the "
  518. "required type SC\n", mon_dcss_name);
  519. rc = -EINVAL;
  520. goto out_device;
  521. }
  522. rc = segment_load(mon_dcss_name, SEGMENT_SHARED,
  523. &mon_dcss_start, &mon_dcss_end);
  524. if (rc < 0) {
  525. segment_warning(rc, mon_dcss_name);
  526. rc = -EINVAL;
  527. goto out_device;
  528. }
  529. dcss_mkname(mon_dcss_name, &user_data_connect[8]);
  530. /*
  531. * misc_register() has to be the last action in module_init(), because
  532. * file operations will be available right after this.
  533. */
  534. rc = misc_register(&mon_dev);
  535. if (rc < 0 )
  536. goto out;
  537. return 0;
  538. out:
  539. segment_unload(mon_dcss_name);
  540. out_device:
  541. device_unregister(monreader_device);
  542. out_driver:
  543. driver_unregister(&monreader_driver);
  544. out_iucv:
  545. iucv_unregister(&monreader_iucv_handler, 1);
  546. return rc;
  547. }
  548. static void __exit mon_exit(void)
  549. {
  550. segment_unload(mon_dcss_name);
  551. WARN_ON(misc_deregister(&mon_dev) != 0);
  552. device_unregister(monreader_device);
  553. driver_unregister(&monreader_driver);
  554. iucv_unregister(&monreader_iucv_handler, 1);
  555. return;
  556. }
  557. module_init(mon_init);
  558. module_exit(mon_exit);
  559. module_param_string(mondcss, mon_dcss_name, 9, 0444);
  560. MODULE_PARM_DESC(mondcss, "Name of DCSS segment to be used for *MONITOR "
  561. "service, max. 8 chars. Default is MONDCSS");
  562. MODULE_AUTHOR("Gerald Schaefer <geraldsc@de.ibm.com>");
  563. MODULE_DESCRIPTION("Character device driver for reading z/VM "
  564. "monitor service records.");
  565. MODULE_LICENSE("GPL");