Struct uio::UioDevice [] [src]

pub struct UioDevice { /* fields omitted */ }

Methods

impl UioDevice
[src]

Creates a new UIO device for Linux.

Arguments

  • uio_num - UIO index of device (i.e., 1 for /dev/uio1)

Return a vector of mappable resources (i.e., PCI bars) including their size.

Maps a given resource into the virtual address space of the process.

Arguments

  • bar_nr: The index to the given resource (i.e., 1 for /sys/class/uio/uioX/device/resource1)

The amount of events.

The name of the UIO device.

The version of the UIO driver.

The size of a given mapping.

Arguments

  • mapping: The given index of the mapping (i.e., 1 for /sys/class/uio/uioX/maps/map1)

The address of a given mapping.

Arguments

  • mapping: The given index of the mapping (i.e., 1 for /sys/class/uio/uioX/maps/map1)

Return a list of all possible memory mappings.

Map an available memory mapping.

Arguments

  • mapping: The given index of the mapping (i.e., 1 for /sys/class/uio/uioX/maps/map1)