miniOS
x86_64 hobby kernel with SMP, VFS, and POSIX process model
Loading...
Searching...
No Matches
virtio_net.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int virtio_net_probe_and_init (void)

Function Documentation

◆ virtio_net_probe_and_init()

int virtio_net_probe_and_init ( void )

virtio_net_probe_and_init() - Probe PCI bus for a virtio-net device and initialise it.

Scans pci_devices[] for vendor=0x1AF4, device=0x1000. Negotiates legacy virtio features, allocates virtqueues from physically contiguous PMM frames, and registers a netdev_t via netdev_register().

Returns
: 0 on success, -1 if no device found or initialisation failed.
Here is the call graph for this function:
Here is the caller graph for this function: