MCPcopy Create free account
hub / github.com/ading2210/linuxpdf / bf_read_async

Function bf_read_async

tinyemu/block_net.c:370–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

368}
369
370static int bf_read_async(BlockDevice *bs,
371 uint64_t sector_num, uint8_t *buf, int n,
372 BlockDeviceCompletionFunc *cb, void *opaque)
373{
374 BlockDeviceHTTP *bf = bs->opaque;
375 // printf("bf_read_async: sector_num=%" PRId64 " n=%d\n", sector_num, n);
376 bf->is_write = FALSE;
377 bf->sector_num = sector_num;
378 bf->io_buf = buf;
379 bf->sector_count = n;
380 bf->sector_index = 0;
381 bf->cb = cb;
382 bf->opaque = opaque;
383 bf->n_read_sectors += n;
384 return bf_rw_async1(bs, TRUE);
385}
386
387static int bf_write_async(BlockDevice *bs,
388 uint64_t sector_num, const uint8_t *buf, int n,

Callers

nothing calls this directly

Calls 1

bf_rw_async1Function · 0.85

Tested by

no test coverage detected