monreader.c 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651
  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. 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)
  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)
  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. .llseek = noop_llseek,
  392. };
  393. static struct miscdevice mon_dev = {
  394. .name = "monreader",
  395. .fops = &mon_fops,
  396. .minor = MISC_DYNAMIC_MINOR,
  397. };
  398. /******************************************************************************
  399. * suspend / resume *
  400. *****************************************************************************/
  401. static int monreader_freeze(struct device *dev)
  402. {
  403. struct mon_private *monpriv = dev_get_drvdata(dev);
  404. int rc;
  405. if (!monpriv)
  406. return 0;
  407. if (monpriv->path) {
  408. rc = iucv_path_sever(monpriv->path, user_data_sever);
  409. if (rc)
  410. pr_warning("Disconnecting the z/VM *MONITOR system "
  411. "service failed with rc=%i\n", rc);
  412. iucv_path_free(monpriv->path);
  413. }
  414. atomic_set(&monpriv->iucv_severed, 0);
  415. atomic_set(&monpriv->iucv_connected, 0);
  416. atomic_set(&monpriv->read_ready, 0);
  417. atomic_set(&monpriv->msglim_count, 0);
  418. monpriv->write_index = 0;
  419. monpriv->read_index = 0;
  420. monpriv->path = NULL;
  421. return 0;
  422. }
  423. static int monreader_thaw(struct device *dev)
  424. {
  425. struct mon_private *monpriv = dev_get_drvdata(dev);
  426. int rc;
  427. if (!monpriv)
  428. return 0;
  429. rc = -ENOMEM;
  430. monpriv->path = iucv_path_alloc(MON_MSGLIM, IUCV_IPRMDATA, GFP_KERNEL);
  431. if (!monpriv->path)
  432. goto out;
  433. rc = iucv_path_connect(monpriv->path, &monreader_iucv_handler,
  434. MON_SERVICE, NULL, user_data_connect, monpriv);
  435. if (rc) {
  436. pr_err("Connecting to the z/VM *MONITOR system service "
  437. "failed with rc=%i\n", rc);
  438. goto out_path;
  439. }
  440. wait_event(mon_conn_wait_queue,
  441. atomic_read(&monpriv->iucv_connected) ||
  442. atomic_read(&monpriv->iucv_severed));
  443. if (atomic_read(&monpriv->iucv_severed))
  444. goto out_path;
  445. return 0;
  446. out_path:
  447. rc = -EIO;
  448. iucv_path_free(monpriv->path);
  449. monpriv->path = NULL;
  450. out:
  451. atomic_set(&monpriv->iucv_severed, 1);
  452. return rc;
  453. }
  454. static int monreader_restore(struct device *dev)
  455. {
  456. int rc;
  457. segment_unload(mon_dcss_name);
  458. rc = segment_load(mon_dcss_name, SEGMENT_SHARED,
  459. &mon_dcss_start, &mon_dcss_end);
  460. if (rc < 0) {
  461. segment_warning(rc, mon_dcss_name);
  462. panic("fatal monreader resume error: no monitor dcss\n");
  463. }
  464. return monreader_thaw(dev);
  465. }
  466. static const struct dev_pm_ops monreader_pm_ops = {
  467. .freeze = monreader_freeze,
  468. .thaw = monreader_thaw,
  469. .restore = monreader_restore,
  470. };
  471. static struct device_driver monreader_driver = {
  472. .name = "monreader",
  473. .bus = &iucv_bus,
  474. .pm = &monreader_pm_ops,
  475. };
  476. /******************************************************************************
  477. * module init/exit *
  478. *****************************************************************************/
  479. static int __init mon_init(void)
  480. {
  481. int rc;
  482. if (!MACHINE_IS_VM) {
  483. pr_err("The z/VM *MONITOR record device driver cannot be "
  484. "loaded without z/VM\n");
  485. return -ENODEV;
  486. }
  487. /*
  488. * Register with IUCV and connect to *MONITOR service
  489. */
  490. rc = iucv_register(&monreader_iucv_handler, 1);
  491. if (rc) {
  492. pr_err("The z/VM *MONITOR record device driver failed to "
  493. "register with IUCV\n");
  494. return rc;
  495. }
  496. rc = driver_register(&monreader_driver);
  497. if (rc)
  498. goto out_iucv;
  499. monreader_device = kzalloc(sizeof(struct device), GFP_KERNEL);
  500. if (!monreader_device) {
  501. rc = -ENOMEM;
  502. goto out_driver;
  503. }
  504. dev_set_name(monreader_device, "monreader-dev");
  505. monreader_device->bus = &iucv_bus;
  506. monreader_device->parent = iucv_root;
  507. monreader_device->driver = &monreader_driver;
  508. monreader_device->release = (void (*)(struct device *))kfree;
  509. rc = device_register(monreader_device);
  510. if (rc) {
  511. put_device(monreader_device);
  512. goto out_driver;
  513. }
  514. rc = segment_type(mon_dcss_name);
  515. if (rc < 0) {
  516. segment_warning(rc, mon_dcss_name);
  517. goto out_device;
  518. }
  519. if (rc != SEG_TYPE_SC) {
  520. pr_err("The specified *MONITOR DCSS %s does not have the "
  521. "required type SC\n", mon_dcss_name);
  522. rc = -EINVAL;
  523. goto out_device;
  524. }
  525. rc = segment_load(mon_dcss_name, SEGMENT_SHARED,
  526. &mon_dcss_start, &mon_dcss_end);
  527. if (rc < 0) {
  528. segment_warning(rc, mon_dcss_name);
  529. rc = -EINVAL;
  530. goto out_device;
  531. }
  532. dcss_mkname(mon_dcss_name, &user_data_connect[8]);
  533. /*
  534. * misc_register() has to be the last action in module_init(), because
  535. * file operations will be available right after this.
  536. */
  537. rc = misc_register(&mon_dev);
  538. if (rc < 0 )
  539. goto out;
  540. return 0;
  541. out:
  542. segment_unload(mon_dcss_name);
  543. out_device:
  544. device_unregister(monreader_device);
  545. out_driver:
  546. driver_unregister(&monreader_driver);
  547. out_iucv:
  548. iucv_unregister(&monreader_iucv_handler, 1);
  549. return rc;
  550. }
  551. static void __exit mon_exit(void)
  552. {
  553. segment_unload(mon_dcss_name);
  554. misc_deregister(&mon_dev);
  555. device_unregister(monreader_device);
  556. driver_unregister(&monreader_driver);
  557. iucv_unregister(&monreader_iucv_handler, 1);
  558. return;
  559. }
  560. module_init(mon_init);
  561. module_exit(mon_exit);
  562. module_param_string(mondcss, mon_dcss_name, 9, 0444);
  563. MODULE_PARM_DESC(mondcss, "Name of DCSS segment to be used for *MONITOR "
  564. "service, max. 8 chars. Default is MONDCSS");
  565. MODULE_AUTHOR("Gerald Schaefer <geraldsc@de.ibm.com>");
  566. MODULE_DESCRIPTION("Character device driver for reading z/VM "
  567. "monitor service records.");
  568. MODULE_LICENSE("GPL");