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

Function bf_write_async

tinyemu/block_net.c:387–402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

385}
386
387static int bf_write_async(BlockDevice *bs,
388 uint64_t sector_num, const uint8_t *buf, int n,
389 BlockDeviceCompletionFunc *cb, void *opaque)
390{
391 BlockDeviceHTTP *bf = bs->opaque;
392 // printf("bf_write_async: sector_num=%" PRId64 " n=%d\n", sector_num, n);
393 bf->is_write = TRUE;
394 bf->sector_num = sector_num;
395 bf->io_buf = (uint8_t *)buf;
396 bf->sector_count = n;
397 bf->sector_index = 0;
398 bf->cb = cb;
399 bf->opaque = opaque;
400 bf->n_write_sectors += n;
401 return bf_rw_async1(bs, TRUE);
402}
403
404BlockDevice *block_device_init_http(const char *url,
405 int max_cache_size_kb,

Callers

nothing calls this directly

Calls 1

bf_rw_async1Function · 0.85

Tested by

no test coverage detected