MCPcopy Create free account
hub / github.com/F-Stack/f-stack / get_blk_size

Function get_blk_size

dpdk/lib/vhost/vhost_user.c:106–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106static uint64_t
107get_blk_size(int fd)
108{
109 struct stat stat;
110 int ret;
111
112 ret = fstat(fd, &stat);
113 return ret == -1 ? (uint64_t)-1 : (uint64_t)stat.st_blksize;
114}
115
116static void
117async_dma_map(struct virtio_net *dev, bool do_map)

Callers 5

hua_to_alignmentFunction · 0.85
vhost_user_mmap_regionFunction · 0.85
inflight_mem_allocFunction · 0.85
vhost_user_set_log_baseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected