[PATCH v5 12/21] core: read: add dev_read_addr_index_ptr function