Lines Matching refs:zdm
47 zfs_dbgmsg_t *zdm = list_remove_head(&zfs_dbgmsgs); in zfs_dbgmsg_purge() local
48 if (zdm == NULL) in zfs_dbgmsg_purge()
51 uint_t size = zdm->zdm_size; in zfs_dbgmsg_purge()
52 kmem_free(zdm, size); in zfs_dbgmsg_purge()
68 zfs_dbgmsg_t *zdm; in zfs_dbgmsg_fini() local
69 while ((zdm = list_remove_head(&zfs_dbgmsgs))) in zfs_dbgmsg_fini()
70 umem_free(zdm, zdm->zdm_size); in zfs_dbgmsg_fini()
86 zfs_dbgmsg_t *zdm = umem_zalloc(size, KM_SLEEP); in __zfs_dbgmsg() local
87 zdm->zdm_size = size; in __zfs_dbgmsg()
88 zdm->zdm_timestamp = gethrestime_sec(); in __zfs_dbgmsg()
89 strcpy(zdm->zdm_msg, buf); in __zfs_dbgmsg()
92 list_insert_tail(&zfs_dbgmsgs, zdm); in __zfs_dbgmsg()
113 for (zfs_dbgmsg_t *zdm = list_head(&zfs_dbgmsgs); zdm != NULL; in zfs_dbgmsg_print() local
114 zdm = list_next(&zfs_dbgmsgs, zdm)) { in zfs_dbgmsg_print()
115 ret = write(fd, zdm->zdm_msg, strlen(zdm->zdm_msg)); in zfs_dbgmsg_print()