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

Function modern_write_dev_config

dpdk/drivers/net/virtio/virtio_pci.c:318–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316}
317
318static void
319modern_write_dev_config(struct virtio_hw *hw, size_t offset,
320 const void *src, int length)
321{
322 struct virtio_pci_dev *dev = virtio_pci_get_dev(hw);
323 int i;
324 const uint8_t *p = src;
325
326 for (i = 0; i < length; i++)
327 rte_write8((*p++), (((uint8_t *)dev->dev_cfg) + offset + i));
328}
329
330static uint64_t
331modern_get_features(struct virtio_hw *hw)

Callers

nothing calls this directly

Calls 1

rte_write8Function · 0.50

Tested by

no test coverage detected