Lines Matching defs:li
1805 log_item_t *li, *li_next;
1807 li = l->l_sentinel->li_next;
1808 while (li != l->l_sentinel) {
1809 li_next = li->li_next;
1810 if ((action(li)) != PO_SUCCESS)
1812 li = li_next;
1826 log_item_t *li, *li_prev;
1828 li = l->l_sentinel->li_prev;
1829 while (li != l->l_sentinel) {
1830 li_prev = li->li_prev;
1831 if ((action(li)) != PO_SUCCESS)
1833 li = li_prev;
1845 log_item_t *li;
1848 for (li = l->l_sentinel->li_next; li != l->l_sentinel; li = li->li_next)
1862 log_item_t *li;
1864 if ((li = log_item_alloc(l, op, details)) == NULL) {
1871 li->li_prev = l->l_sentinel->li_prev;
1872 li->li_next = l->l_sentinel;
1873 l->l_sentinel->li_prev->li_next = li;
1874 l->l_sentinel->li_prev = li;
1888 log_item_t *li;
1890 if ((li = malloc(sizeof (log_item_t))) == NULL) {
1895 (void) memset(li, 0, sizeof (log_item_t));
1896 li->li_log = l;
1897 li->li_op = op;
1898 li->li_details = details;
1899 li->li_state = LS_DO;
1901 return (li);
1908 log_item_free(log_item_t *li)
1910 li->li_prev->li_next = li->li_next;
1911 li->li_next->li_prev = li->li_prev;
1912 free(li);
1979 log_item_dprintf(log_item_t *li)
1981 dprintf("LOGDUMP: %d operation, %p\n", li->li_op, li->li_details);