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