Home
last modified time | relevance | path

Searched refs:preread_count (Results 1 – 1 of 1) sorted by relevance

/system/core/liblog/
Dlog_read.c636 static uint8_t preread_count; in android_logger_list_read_pstore() local
647 preread_count = 0; in android_logger_list_read_pstore()
652 if (preread_count < sizeof(buf)) { in android_logger_list_read_pstore()
654 &buf.p.magic + preread_count, in android_logger_list_read_pstore()
655 sizeof(buf) - preread_count)); in android_logger_list_read_pstore()
659 preread_count += ret; in android_logger_list_read_pstore()
661 if (preread_count != sizeof(buf)) { in android_logger_list_read_pstore()
662 return preread_count ? -EIO : -EAGAIN; in android_logger_list_read_pstore()
670 memmove(&buf.p.magic, &buf.p.magic + 1, --preread_count); in android_logger_list_read_pstore()
671 } while (preread_count && (buf.p.magic != LOGGER_MAGIC)); in android_logger_list_read_pstore()
[all …]