Home | History | Annotate | Download | only in libdiskconfig

Lines Matching refs:lst

51 wlist_add(struct write_list **lst, struct write_list *item)
53 item->next = (*lst);
54 *lst = item;
59 wlist_free(struct write_list *lst)
62 while (lst) {
63 temp_wr = lst->next;
64 free_wl(lst);
65 lst = temp_wr;
70 wlist_commit(int fd, struct write_list *lst, int test)
72 for(; lst; lst = lst->next) {
73 if (lseek64(fd, lst->offset, SEEK_SET) != (loff_t)lst->offset) {
74 ALOGE("Cannot seek to the specified position (%lld).", (long long)lst->offset);
79 if (write(fd, lst->data, lst->len) != (int)lst->len) {
80 ALOGE("Failed writing %u bytes at position %lld.", lst->len,
81 (long long)lst->offset);
85 ALOGI("Would write %d bytes @ offset %lld.", lst->len, (long long)lst->offset);