monreader.c 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650
  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 <linux/slab.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. rc = -EBUSY;
  246. if (test_and_set_bit(MON_IN_USE, &mon_in_use))
  247. goto out;
  248. rc = -ENOMEM;
  249. monpriv = mon_alloc_mem();
  250. if (!monpriv)
  251. goto out_use;
  252. /*
  253. * Connect to *MONITOR service
  254. */
  255. monpriv->path = iucv_path_alloc(MON_MSGLIM, IUCV_IPRMDATA, GFP_KERNEL);
  256. if (!monpriv->path)
  257. goto out_priv;
  258. rc = iucv_path_connect(monpriv->path, &monreader_iucv_handler,
  259. MON_SERVICE, NULL, user_data_connect, monpriv);
  260. if (rc) {
  261. pr_err("Connecting to the z/VM *MONITOR system service "
  262. "failed with rc=%i\n", rc);
  263. rc = -EIO;
  264. goto out_path;
  265. }
  266. /*
  267. * Wait for connection confirmation
  268. */
  269. wait_event(mon_conn_wait_queue,
  270. atomic_read(&monpriv->iucv_connected) ||
  271. atomic_read(&monpriv->iucv_severed));
  272. if (atomic_read(&monpriv->iucv_severed)) {
  273. atomic_set(&monpriv->iucv_severed, 0);
  274. atomic_set(&monpriv->iucv_connected, 0);
  275. rc = -EIO;
  276. goto out_path;
  277. }
  278. filp->private_data = monpriv;
  279. dev_set_drvdata(monreader_device, monpriv);
  280. return nonseekable_open(inode, filp);
  281. out_path:
  282. iucv_path_free(monpriv->path);
  283. out_priv:
  284. mon_free_mem(monpriv);
  285. out_use:
  286. clear_bit(MON_IN_USE, &mon_in_use);
  287. out:
  288. return rc;
  289. }
  290. static int mon_close(struct inode *inode, struct file *filp)
  291. {
  292. int rc, i;
  293. struct mon_private *monpriv = filp->private_data;
  294. /*
  295. * Close IUCV connection and unregister
  296. */
  297. if (monpriv->path) {
  298. rc = iucv_path_sever(monpriv->path, user_data_sever);
  299. if (rc)
  300. pr_warning("Disconnecting the z/VM *MONITOR system "
  301. "service failed with rc=%i\n", rc);
  302. iucv_path_free(monpriv->path);
  303. }
  304. atomic_set(&monpriv->iucv_severed, 0);
  305. atomic_set(&monpriv->iucv_connected, 0);
  306. atomic_set(&monpriv->read_ready, 0);
  307. atomic_set(&monpriv->msglim_count, 0);
  308. monpriv->write_index = 0;
  309. monpriv->read_index = 0;
  310. dev_set_drvdata(monreader_device, NULL);
  311. for (i = 0; i < MON_MSGLIM; i++)
  312. kfree(monpriv->msg_array[i]);
  313. kfree(monpriv);
  314. clear_bit(MON_IN_USE, &mon_in_use);
  315. return 0;
  316. }
  317. static ssize_t mon_read(struct file *filp, char __user *data,
  318. size_t count, loff_t *ppos)
  319. {
  320. struct mon_private *monpriv = filp->private_data;
  321. struct mon_msg *monmsg;
  322. int ret;
  323. u32 mce_start;
  324. monmsg = mon_next_message(monpriv);
  325. if (IS_ERR(monmsg))
  326. return PTR_ERR(monmsg);
  327. if (!monmsg) {
  328. if (filp->f_flags & O_NONBLOCK)
  329. return -EAGAIN;
  330. ret = wait_event_interruptible(mon_read_wait_queue,
  331. atomic_read(&monpriv->read_ready) ||
  332. atomic_read(&monpriv->iucv_severed));
  333. if (ret)
  334. return ret;
  335. if (unlikely(atomic_read(&monpriv->iucv_severed)))
  336. return -EIO;
  337. monmsg = monpriv->msg_array[monpriv->read_index];
  338. }
  339. if (!monmsg->pos)
  340. monmsg->pos = mon_mca_start(monmsg) + monmsg->mca_offset;
  341. if (mon_check_mca(monmsg))
  342. goto reply;
  343. /* read monitor control element (12 bytes) first */
  344. mce_start = mon_mca_start(monmsg) + monmsg->mca_offset;
  345. if ((monmsg->pos >= mce_start) && (monmsg->pos < mce_start + 12)) {
  346. count = min(count, (size_t) mce_start + 12 - monmsg->pos);
  347. ret = copy_to_user(data, (void *) (unsigned long) monmsg->pos,
  348. count);
  349. if (ret)
  350. return -EFAULT;
  351. monmsg->pos += count;
  352. if (monmsg->pos == mce_start + 12)
  353. monmsg->pos = mon_rec_start(monmsg);
  354. goto out_copy;
  355. }
  356. /* read records */
  357. if (monmsg->pos <= mon_rec_end(monmsg)) {
  358. count = min(count, (size_t) mon_rec_end(monmsg) - monmsg->pos
  359. + 1);
  360. ret = copy_to_user(data, (void *) (unsigned long) monmsg->pos,
  361. count);
  362. if (ret)
  363. return -EFAULT;
  364. monmsg->pos += count;
  365. if (monmsg->pos > mon_rec_end(monmsg))
  366. mon_next_mca(monmsg);
  367. goto out_copy;
  368. }
  369. reply:
  370. ret = mon_send_reply(monmsg, monpriv);
  371. return ret;
  372. out_copy:
  373. *ppos += count;
  374. return count;
  375. }
  376. static unsigned int mon_poll(struct file *filp, struct poll_table_struct *p)
  377. {
  378. struct mon_private *monpriv = filp->private_data;
  379. poll_wait(filp, &mon_read_wait_queue, p);
  380. if (unlikely(atomic_read(&monpriv->iucv_severed)))
  381. return POLLERR;
  382. if (atomic_read(&monpriv->read_ready))
  383. return POLLIN | POLLRDNORM;
  384. return 0;
  385. }
  386. static const struct file_operations mon_fops = {
  387. .owner = THIS_MODULE,
  388. .open = &mon_open,
  389. .release = &mon_close,
  390. .read = &mon_read,
  391. .poll = &mon_poll,
  392. .llseek = noop_llseek,
  393. };
  394. static struct miscdevice mon_dev = {
  395. .name = "monreader",
  396. .fops = &mon_fops,
  397. .minor = MISC_DYNAMIC_MINOR,
  398. };
  399. /******************************************************************************
  400. * suspend / resume *
  401. *****************************************************************************/
  402. static int monreader_freeze(struct device *dev)
  403. {
  404. struct mon_private *monpriv = dev_get_drvdata(dev);
  405. int rc;
  406. if (!monpriv)
  407. return 0;
  408. if (monpriv->path) {
  409. rc = iucv_path_sever(monpriv->path, user_data_sever);
  410. if (rc)
  411. pr_warning("Disconnecting the z/VM *MONITOR system "
  412. "service failed with rc=%i\n", rc);
  413. iucv_path_free(monpriv->path);
  414. }
  415. atomic_set(&monpriv->iucv_severed, 0);
  416. atomic_set(&monpriv->iucv_connected, 0);
  417. atomic_set(&monpriv->read_ready, 0);
  418. atomic_set(&monpriv->msglim_count, 0);
  419. monpriv->write_index = 0;
  420. monpriv->read_index = 0;
  421. monpriv->path = NULL;
  422. return 0;
  423. }
  424. static int monreader_thaw(struct device *dev)
  425. {
  426. struct mon_private *monpriv = dev_get_drvdata(dev);
  427. int rc;
  428. if (!monpriv)
  429. return 0;
  430. rc = -ENOMEM;
  431. monpriv->path = iucv_path_alloc(MON_MSGLIM, IUCV_IPRMDATA, GFP_KERNEL);
  432. if (!monpriv->path)
  433. goto out;
  434. rc = iucv_path_connect(monpriv->path, &monreader_iucv_handler,
  435. MON_SERVICE, NULL, user_data_connect, monpriv);
  436. if (rc) {
  437. pr_err("Connecting to the z/VM *MONITOR system service "
  438. "failed with rc=%i\n", rc);
  439. goto out_path;
  440. }
  441. wait_event(mon_conn_wait_queue,
  442. atomic_read(&monpriv->iucv_connected) ||
  443. atomic_read(&monpriv->iucv_severed));
  444. if (atomic_read(&monpriv->iucv_severed))
  445. goto out_path;
  446. return 0;
  447. out_path:
  448. rc = -EIO;
  449. iucv_path_free(monpriv->path);
  450. monpriv->path = NULL;
  451. out:
  452. atomic_set(&monpriv->iucv_severed, 1);
  453. return rc;
  454. }
  455. static int monreader_restore(struct device *dev)
  456. {
  457. int rc;
  458. segment_unload(mon_dcss_name);
  459. rc = segment_load(mon_dcss_name, SEGMENT_SHARED,
  460. &mon_dcss_start, &mon_dcss_end);
  461. if (rc < 0) {
  462. segment_warning(rc, mon_dcss_name);
  463. panic("fatal monreader resume error: no monitor dcss\n");
  464. }
  465. return monreader_thaw(dev);
  466. }
  467. static const struct dev_pm_ops monreader_pm_ops = {
  468. .freeze = monreader_freeze,
  469. .thaw = monreader_thaw,
  470. .restore = monreader_restore,
  471. };
  472. static struct device_driver monreader_driver = {
  473. .name = "monreader",
  474. .bus = &iucv_bus,
  475. .pm = &monreader_pm_ops,
  476. };
  477. /******************************************************************************
  478. * module init/exit *
  479. *****************************************************************************/
  480. static int __init mon_init(void)
  481. {
  482. int rc;
  483. if (!MACHINE_IS_VM) {
  484. pr_err("The z/VM *MONITOR record device driver cannot be "
  485. "loaded without z/VM\n");
  486. return -ENODEV;
  487. }
  488. /*
  489. * Register with IUCV and connect to *MONITOR service
  490. */
  491. rc = iucv_register(&monreader_iucv_handler, 1);
  492. if (rc) {
  493. pr_err("The z/VM *MONITOR record device driver failed to "
  494. "register with IUCV\n");
  495. return rc;
  496. }
  497. rc = driver_register(&monreader_driver);
  498. if (rc)
  499. goto out_iucv;
  500. monreader_device = kzalloc(sizeof(struct device), GFP_KERNEL);
  501. if (!monreader_device)
  502. goto out_driver;
  503. dev_set_name(monreader_device, "monreader-dev");
  504. monreader_device->bus = &iucv_bus;
  505. monreader_device->parent = iucv_root;
  506. monreader_device->driver = &monreader_driver;
  507. monreader_device->release = (void (*)(struct device *))kfree;
  508. rc = device_register(monreader_device);
  509. if (rc) {
  510. put_device(monreader_device);
  511. goto out_driver;
  512. }
  513. rc = segment_type(mon_dcss_name);
  514. if (rc < 0) {
  515. segment_warning(rc, mon_dcss_name);
  516. goto out_device;
  517. }
  518. if (rc != SEG_TYPE_SC) {
  519. pr_err("The specified *MONITOR DCSS %s does not have the "
  520. "required type SC\n", mon_dcss_name);
  521. rc = -EINVAL;
  522. goto out_device;
  523. }
  524. rc = segment_load(mon_dcss_name, SEGMENT_SHARED,
  525. &mon_dcss_start, &mon_dcss_end);
  526. if (rc < 0) {
  527. segment_warning(rc, mon_dcss_name);
  528. rc = -EINVAL;
  529. goto out_device;
  530. }
  531. dcss_mkname(mon_dcss_name, &user_data_connect[8]);
  532. /*
  533. * misc_register() has to be the last action in module_init(), because
  534. * file operations will be available right after this.
  535. */
  536. rc = misc_register(&mon_dev);
  537. if (rc < 0 )
  538. goto out;
  539. return 0;
  540. out:
  541. segment_unload(mon_dcss_name);
  542. out_device:
  543. device_unregister(monreader_device);
  544. out_driver:
  545. driver_unregister(&monreader_driver);
  546. out_iucv:
  547. iucv_unregister(&monreader_iucv_handler, 1);
  548. return rc;
  549. }
  550. static void __exit mon_exit(void)
  551. {
  552. segment_unload(mon_dcss_name);
  553. misc_deregister(&mon_dev);
  554. device_unregister(monreader_device);
  555. driver_unregister(&monreader_driver);
  556. iucv_unregister(&monreader_iucv_handler, 1);
  557. return;
  558. }
  559. module_init(mon_init);
  560. module_exit(mon_exit);
  561. module_param_string(mondcss, mon_dcss_name, 9, 0444);
  562. MODULE_PARM_DESC(mondcss, "Name of DCSS segment to be used for *MONITOR "
  563. "service, max. 8 chars. Default is MONDCSS");
  564. MODULE_AUTHOR("Gerald Schaefer <geraldsc@de.ibm.com>");
  565. MODULE_DESCRIPTION("Character device driver for reading z/VM "
  566. "monitor service records.");
  567. MODULE_LICENSE("GPL");